[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,11 @@
pragma experimental SMTChecker;
contract C {
function f(uint b) public pure returns (uint d) {
require(b < 10);
uint c = b < 5 ? 5 : 1;
d = c > 5 ? 3 : 2;
}
}
// ----
// Warning 6838: (148-153): Condition is always false.