Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[circt-bmc][VerifToSMT] Add initial value support #7903

Merged
merged 3 commits into from
Nov 29, 2024

Conversation

TaoBi22
Copy link
Contributor

@TaoBi22 TaoBi22 commented Nov 26, 2024

Changes circt-bmc to use the initial values added to the BMC op in #7729 to initialize register states - this should mean circt-bmc can now check meaningful properties! 🎉

The added integration test checks whether the counter value always stays below a certain value with different time bounds, which also functions as a check that assertions are getting popped as mentioned in #7900

Copy link
Member

@maerhart maerhart left a comment

Choose a reason for hiding this comment

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

LGTM! Very nice that these examples work properly now. 🎉

I think we should change the assembly format of the bmc op a bit in the future. It's a bit confusing to see which of the block arguments and terminator operands are regular inputs/outputs, registers, state values, etc.

lib/Conversion/VerifToSMT/VerifToSMT.cpp Outdated Show resolved Hide resolved
lib/Conversion/VerifToSMT/VerifToSMT.cpp Outdated Show resolved Hide resolved
…rovided for integer regs and update tests accordingly
@TaoBi22 TaoBi22 merged commit 46793f4 into llvm:main Nov 29, 2024
4 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