Skip to content

[SMTToZ3LLVM] Strip dbg.variable and dbg.scope ops (for now)#10102

Merged
TaoBi22 merged 2 commits intollvm:mainfrom
TaoBi22:smt2z3-strip-debug
Apr 2, 2026
Merged

[SMTToZ3LLVM] Strip dbg.variable and dbg.scope ops (for now)#10102
TaoBi22 merged 2 commits intollvm:mainfrom
TaoBi22:smt2z3-strip-debug

Conversation

@TaoBi22
Copy link
Copy Markdown
Contributor

@TaoBi22 TaoBi22 commented Apr 2, 2026

This adds some temporary patterns to SMTToZ3LLVM so that we discard dbg.scope and dbg.variable ops - this allows us to insert debug ops to achieve informative naming later on without it breaking further down the pipeline. Eventually we'll want to replace these patterns with handling that takes and uses the debug information for counter-example reporting.

This should allow #10075 to land (and should help smooth out the wider GSoC circt-bmc reporting effort)

(also note that the dbg.scope erasure pattern should be legal as per MLIR FAQ)

Copy link
Copy Markdown
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@TaoBi22 TaoBi22 merged commit e6a98e6 into llvm:main Apr 2, 2026
8 checks passed
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