2019-05-03 04:15:00 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
|
|
|
|
contract C
|
|
|
|
{
|
|
|
|
bool b;
|
|
|
|
function f() public {
|
|
|
|
if ((b = false) && (b == true)) {}
|
|
|
|
if ((b == false) && (b = true)) {}
|
|
|
|
if ((b = false) && (b = true)) {}
|
|
|
|
if ((b == false) && (b == true)) {}
|
|
|
|
if ((b = true) && b) {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// Warning 6838: (84-110): Condition is always false.
|
|
|
|
// Warning 6838: (121-147): Condition is always true.
|
|
|
|
// Warning 6838: (158-183): Condition is always false.
|
|
|
|
// Warning 6838: (194-221): Condition is always false.
|
|
|
|
// Warning 6838: (232-247): Condition is always true.
|