solidity/test/libsolidity/smtCheckerTests/functions/this_state.sol

17 lines
260 B
Solidity
Raw Normal View History

contract C
{
uint public x;
function g() public {
x = 0;
this.h();
assert(x == 2);
}
function h() public {
x = 2;
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
2020-07-13 18:48:00 +00:00
// ----
2021-10-06 09:53:03 +00:00
// Info 1180: Contract invariant(s) for :C:\n((x = 0) || (x = 2))\n