solidity/test/libsolidity/smtCheckerTests/operators/constant_propagation_2.sol

17 lines
366 B
Solidity
Raw Normal View History

2020-12-16 16:58:49 +00:00
contract C {
uint constant x = 7;
uint constant y = 3;
uint constant z = x / y;
function f() public pure {
assert(z == 2);
assert(z == x / 3);
assert(z == 7 / y);
assert(z * 3 != 7);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----
2023-02-09 16:07:13 +00:00
// Info 1391: CHC: 4 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.