solidity/test/libsolidity/smtCheckerTests/control_flow/branches_assert_condition_1.sol
2018-11-22 13:33:28 +00:00

13 lines
210 B
Solidity

pragma experimental SMTChecker;
contract C {
function f(uint x) public pure {
if (x > 10) {
assert(x > 9);
}
else
{
assert(x < 11);
}
}
}