solidity/test/libsolidity/smtCheckerTests/functions/getters/external_getter_this_1.sol

20 lines
462 B
Solidity
Raw Normal View History

contract C {
uint public x;
function f() public {
x = 2;
x = 3;
uint y = this.x();
assert(y == 3); // should hold
assert(y == 2); // should fail
}
}
// ====
// SMTEngine: chc
// SMTExtCalls: trusted
// SMTIgnoreCex: yes
2023-02-09 16:07:13 +00:00
// SMTTargets: assert
// ----
// Warning 6328: (127-141): CHC: Assertion violation happens here.
2023-02-09 16:07:13 +00:00
// Info 1391: CHC: 1 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.