solidity/test/libsolidity/smtCheckerTests/types/bool_int_mixed_2.sol

9 lines
177 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
function f(bool x, uint a) public pure {
require(!x || a > 0);
uint b = a;
assert(!x || b > 0);
}
}