Skip to content

Implement coverage feedback loop#84

Draft
tothtamas28 wants to merge 3 commits into
masterfrom
coverage-loop
Draft

Implement coverage feedback loop#84
tothtamas28 wants to merge 3 commits into
masterfrom
coverage-loop

Conversation

@tothtamas28
Copy link
Copy Markdown
Contributor

@tothtamas28 tothtamas28 commented May 19, 2026

Wires up a real coverage feedback loop by parsing KORE output into a kore::Pattern tree and extracting data from the <coverage> cell, replacing the previous stub.

Changes

  • get_exit_code and write_coverage_data now take &kore::Pattern instead of &kllvm::Block, dropping the regex-based string scraping.
  • get_coverage_size is derived from actual coverage instead of a hardcoded 100.
  • Adds kllvm_kore_block_dump_hotfix to trim raw dump output at the <generatedCounter> terminator, working around an upstream bug.
  • Reverts the 64 MB stack size workaround: the <coverage> cell no longer has extreme nesting depth.

This reverts commit a3bdcea.

The `<coverage>` cell no longer has a huge depth, so traversing it
with a default stack size should be feasible.
@tothtamas28 tothtamas28 self-assigned this May 19, 2026
@tothtamas28 tothtamas28 requested a review from gtrepta May 19, 2026 20:50
@tothtamas28 tothtamas28 marked this pull request as ready for review May 19, 2026 20:50
@tothtamas28 tothtamas28 marked this pull request as draft May 20, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants