mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Implement short circuit
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user