Merge pull request #12036 from ethereum/smt_fix_magic

[SMTChecker] Fix magic access
This commit is contained in:
chriseth
2021-10-04 11:01:39 +02:00
committed by GitHub
3 changed files with 50 additions and 27 deletions
@@ -0,0 +1,12 @@
contract C {
function f() public payable {
assert((msg).value == 10);
assert((true ? msg : msg).value == 12);
}
}
// ====
// SMTEngine: all
// SMTIgnoreOS: macos
// ----
// Warning 6328: (46-71): CHC: Assertion violation happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()\nC.f(){ value: 11 }
// Warning 6328: (75-113): CHC: Assertion violation happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()\nC.f()