solidity/test/libsolidity/smtCheckerTests/blockchain_state/this_does_not_change.sol

15 lines
313 B
Solidity
Raw Normal View History

2020-09-18 17:07:58 +00:00
contract C {
address t;
constructor() {
t = address(this);
}
function inv() public view {
assert(address(this) == t);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
2021-10-06 09:53:03 +00:00
// SMTIgnoreOS: macos
2020-09-18 17:07:58 +00:00
// ----
2021-10-06 09:53:03 +00:00
// Info 1180: Contract invariant(s) for :C:\n(((address(this) + ((- 1) * t)) <= 0) && ((address(this) + ((- 1) * t)) >= 0))\n