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

SMTChecker: Fix crash in BMC engine regarding state variables #15782

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

blishko
Copy link
Contributor

@blishko blishko commented Jan 27, 2025

Previously, analyzing a call to a getter to a contract then has not been analyzed yet with BMC would result in a crash because BMC would not know about the state variable being accessed.

To fix this, we let BMC know about all state variables in all contracts during initialization.

Fixes #15605.

Previously, analyzing a call to a getter to a contract then has not been
analyzed yet with BMC would result in a crash because BMC would not know
about the state variable being accessed.

To fix this, we let BMC know about all state variables in all contracts
during initialization.
Copy link
Member

@clonker clonker left a comment

Choose a reason for hiding this comment

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

looks good to me

@blishko blishko merged commit 669092c into develop Jan 27, 2025
76 checks passed
@blishko blishko deleted the smt-bmc-getters branch January 27, 2025 11:42
@cameel cameel added the smt label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SMTChecker] Cross-contract function call causes BMC engine to crash.
3 participants