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 analysis for selected contracts #15880

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

blishko
Copy link
Contributor

@blishko blishko commented Feb 19, 2025

Previously, when a contract was selected for analysis, the analysis was incorrect.
There were two issues. First, the contracts in the same file were considered as entry points even though they were not selected for analysis.
Second, the contracts in a different file were mostly ignored, resulting in unsoundness when an external call was made to such a contract in trusted mode.

The solution to the above problems is to always create representation of all contracts (in case they are called from the selected contract), but create verification targets only for the selected contracts.

Fixes #15836.
Fixes #14275.

@blishko blishko added smt 🟡 PR review label labels Feb 19, 2025
@blishko blishko force-pushed the smt-fix-contract-selection branch 2 times, most recently from 99f75d2 to b3c21f1 Compare February 19, 2025 14:30
Previously, when a contract was selected for analysis, the analysis was
incorrect.
There were two issues. First, the contracts in the same file were
considered as entry points even though they were not selected for
analysis.
Second, the contracts in a different file were mostly ignored, resulting
in unsoundness when an external call was made to such a contract in
trusted mode.

The solution to the above problems is to always create representation of all
contracts (in case they are called from the selected contract), but
create verification targets only for the selected contracts.
@blishko blishko force-pushed the smt-fix-contract-selection branch from b3c21f1 to 2fbac99 Compare February 19, 2025 15:56
@ethereum ethereum deleted a comment from stackenbotten Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smt 🟡 PR review label
Projects
None yet
1 participant