Skip to content

Add metadata to unstructured programs#1147

Closed
PROgram52bc wants to merge 1 commit into
mainfrom
htd/unstructured-metadata
Closed

Add metadata to unstructured programs#1147
PROgram52bc wants to merge 1 commit into
mainfrom
htd/unstructured-metadata

Conversation

@PROgram52bc
Copy link
Copy Markdown
Contributor

Description of changes:

stmtsToBlocks was discarding the md (metadata) field from .ite, .loop, .block, and .exit statements when lowering structured control flow to basic blocks. This meant source-location information (e.g., fileRange) was lost in the resulting CFG.

Changes:

  • DetTransferCmd.goto now accepts an optional md parameter (defaulting to .empty), forwarding it to the underlying condGoto.
  • .ite case: passes md to the condGoto transfer.
  • .loop case: passes md to the loop-entry condGoto (both det and nondet branches).
  • .block case: passes md to the block-entry .goto.
  • .exit case: passes md to the flush .goto.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions github-actions Bot added the Core label May 8, 2026
@PROgram52bc PROgram52bc requested a review from atomb May 8, 2026 16:59
@PROgram52bc PROgram52bc marked this pull request as ready for review May 8, 2026 16:59
@PROgram52bc PROgram52bc requested a review from a team May 8, 2026 16:59
@PROgram52bc PROgram52bc self-assigned this May 8, 2026
@PROgram52bc PROgram52bc enabled auto-merge May 8, 2026 21:24
@PROgram52bc
Copy link
Copy Markdown
Contributor Author

merged into #1132

auto-merge was automatically disabled May 14, 2026 16:17

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant