[SMTChecker] Implement short circuit

This commit is contained in:
Leonardo Alt
2019-03-28 16:08:30 +01:00
parent a1d59dfb4c
commit a7e826a224
3 changed files with 38 additions and 15 deletions
@@ -8,7 +8,7 @@ contract c {
}
function g() public {
x = 0;
assert((f() > 0) || (f() > 0));
bool b = (f() > 0) || (f() > 0);
// This assertion should NOT fail.
// It currently does because the SMTChecker does not
// handle short-circuiting properly and inlines f() twice.