solidity/test/libsolidity/smtCheckerTests/special/msg_value_3.sol
2021-10-26 11:30:30 +02:00

17 lines
270 B
Solidity

contract C {
bool lock = true;
function f() public {
lock = false;
g();
lock = true;
}
function g() public payable {
require(lock == false);
assert(msg.value == 0);
}
}
// ====
// SMTEngine: all
// ----
// Info 1180: Contract invariant(s) for :C:\nlock\n