2019-05-06 18:03:11 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
|
|
|
|
contract C
|
|
|
|
{
|
|
|
|
function f() public pure {
|
|
|
|
if (true) {
|
|
|
|
address a = g();
|
|
|
|
assert(a == address(0));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function g() public pure returns (address) {
|
|
|
|
address a;
|
|
|
|
a = address(0);
|
|
|
|
return a;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// Warning 5084: (208-218): Type conversion is not yet fully supported and might yield false positives.
|
|
|
|
// Warning 5084: (123-133): Type conversion is not yet fully supported and might yield false positives.
|
|
|
|
// Warning 5084: (208-218): Type conversion is not yet fully supported and might yield false positives.
|