mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
388 B
Solidity
19 lines
388 B
Solidity
contract c {
|
|
uint x;
|
|
function f() internal returns (uint) {
|
|
x = x + 1;
|
|
return x;
|
|
}
|
|
function g() public returns (bool) {
|
|
x = 0;
|
|
bool b = (f() == 0) && (f() == 0);
|
|
assert(x == 1);
|
|
assert(!b);
|
|
return b;
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: all
|
|
// ----
|
|
// Info 1391: CHC: 3 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
|