Skip to content

Smt backend - #223

Open
mira-alford wants to merge 64 commits into
mainfrom
smt-backend
Open

Smt backend#223
mira-alford wants to merge 64 commits into
mainfrom
smt-backend

Conversation

@mira-alford

Copy link
Copy Markdown
Collaborator

Part 1 of the smt backend, yay!

Adds a summary inlining transform which replaces all procedure summaries with asserts/assumes.

Uses this in the dump-smt command, which outputs an smt file that can currently verify basic IL programs (pure and only using primitive types). Support for fancy things like datatypes/matching are not done yet. Should be structured to check that all assertions/ensures are satisfied.

Also makes some changes to the existing smt infrastructure. Fixes some bugs with incorrect symbols for bitvector operations, and makes a mess getting ITEs working (there has to be a better way??).

Comment thread lib/lang/expr_smt.ml Outdated
@katrinafyi
katrinafyi removed their request for review July 27, 2026 02:02
@mira-alford

Copy link
Copy Markdown
Collaborator Author

Oops, should have predicted that failure 💀
Will fix.

Comment thread lib/lang/expr_smt.ml Outdated

@katrinafyi katrinafyi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Pretty cool!

Comment thread lib/backends/smt.ml Outdated
Comment thread lib/lang/algsimp.ml Outdated
Comment thread lib/lang/algsimp.ml
Comment thread lib/lang/ops.ml Outdated
Comment thread lib/transforms/cfa_reduction.ml Outdated
Comment thread lib/transforms/summary_inlining.ml Outdated
Comment thread lib/invariants.ml
Comment thread bin/main.ml Outdated
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.

3 participants