solidity/test/libsolidity/smtCheckerTests/special/msg_value_3.sol

17 lines
270 B
Solidity
Raw Normal View History

2021-01-20 10:22:28 +00:00
contract C {
bool lock = true;
function f() public {
lock = false;
g();
lock = true;
}
function g() public payable {
require(lock == false);
assert(msg.value == 0);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----
2021-10-06 09:53:03 +00:00
// Info 1180: Contract invariant(s) for :C:\nlock\n