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

15 lines
313 B
Solidity

contract C {
address t;
constructor() {
t = address(this);
}
function inv() public view {
assert(address(this) == t);
}
}
// ====
// SMTEngine: all
// SMTIgnoreOS: macos
// ----
// Info 1180: Contract invariant(s) for :C:\n(((address(this) + ((- 1) * t)) <= 0) && ((address(this) + ((- 1) * t)) >= 0))\n