[SMTChecker] Supporting conditional operator

This commit is contained in:
Djordje Mijovic
2020-08-20 21:39:35 +02:00
parent 9e488f12fc
commit 3f97a1012a
19 changed files with 243 additions and 1 deletions
@@ -0,0 +1,12 @@
pragma experimental SMTChecker;
contract C {
function f(bool b) public pure {
require(b);
uint c = b ? 5 : 1;
assert(c < 5);
}
}
// ----
// Warning 6328: (118-131): Assertion violation happens here
// Warning 6838: (105-106): Condition is always true.