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

11 lines
180 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
function f(bool x) public pure {
if(x) {
assert(x);
} else {
assert(!x);
}
}
}