solidity/test/libsolidity/smtCheckerTests/023_bool_simple.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);
}
}
}