solidity/test/libsolidity/smtCheckerTests/control_flow/short_circuit_and.sol
2021-04-08 21:03:39 +02:00

18 lines
257 B
Solidity

contract c {
uint x;
function f() internal returns (uint) {
x = x + 1;
return x;
}
function g() public returns (bool) {
x = 0;
bool b = (f() == 0) && (f() == 0);
assert(x == 1);
assert(!b);
return b;
}
}
// ====
// SMTEngine: all
// ----