solidity/test/libsolidity/smtCheckerTests/operators/conditional_assignment_function_1.sol

14 lines
296 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
function f(uint a) internal pure returns (bool b) {
b = a > 5;
}
function g(uint a) public pure {
uint c = f(a) ? 3 : 4;
assert(c > 5);
}
}
// ----
2020-09-09 14:12:55 +00:00
// Warning 6328: (203-216): Assertion violation happens here.