solidity/test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_if.sol

8 lines
170 B
Solidity

pragma experimental SMTChecker;
contract C
{
function f(bool x) public pure { require(x); if (x) {} }
}
// ----
// Warning 6838: (95-96): BMC: Condition is always true.