2019-05-03 04:15:00 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
|
|
|
|
contract C
|
|
|
|
{
|
|
|
|
bool b;
|
|
|
|
function g(bool _b) internal returns (bool) {
|
|
|
|
b = _b;
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
function f() public {
|
|
|
|
if (g(true) || (b == false)) {}
|
|
|
|
if ((b == true) || g(false)) {}
|
|
|
|
if (g(true) || g(false)) {}
|
|
|
|
if (g(true) || (b == false)) {}
|
|
|
|
if (g(false) || b) {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// Warning 6838: (156-179): Condition is always true.
|
|
|
|
// Warning 6838: (190-213): Condition is always true.
|
|
|
|
// Warning 6838: (224-243): Condition is always true.
|
|
|
|
// Warning 6838: (254-277): Condition is always true.
|
|
|
|
// Warning 6838: (288-301): Condition is always false.
|