-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15782 from ethereum/smt-bmc-getters
SMTChecker: Fix crash in BMC engine regarding state variables
- Loading branch information
Showing
5 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
test/libsolidity/smtCheckerTests/bmc_coverage/cross_contract_getter_call.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
contract C { | ||
D internal d; | ||
constructor() { | ||
d = new D(); | ||
} | ||
function invokeAndCheck() public { | ||
d.set(); | ||
assert(d.n() <= 1); | ||
} | ||
} | ||
|
||
contract D { | ||
uint public n; | ||
function set() external { | ||
n = 1; | ||
} | ||
} | ||
// ==== | ||
// SMTEngine: bmc | ||
// ---- | ||
// Warning 8729: (51-58): Contract deployment is only supported in the trusted mode for external calls with the CHC engine. | ||
// Warning 4661: (112-130): BMC: Assertion violation happens here. |