solidity/test/libsolidity/smtCheckerTests/operators/constant_propagation_2.sol
2023-03-09 14:59:32 +01:00

17 lines
366 B
Solidity

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);
}
}
// ====
// SMTEngine: all
// ----
// Info 1391: CHC: 4 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.