Merge pull request #11116 from blishko/issue-10985

[SMTChecker] Handle InaccessibleDynamicType
This commit is contained in:
Leonardo
2021-03-24 14:39:24 +01:00
committed by GitHub
8 changed files with 65 additions and 6 deletions
@@ -0,0 +1,15 @@
pragma experimental SMTChecker;
contract C {
struct S {
string a;
uint256 y;
}
S public s;
function g() public view returns (uint256) {
this.s();
}
}
// ====
// EVMVersion: <=spuriousDragon
// ----
// Warning 6321: (133-140): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
@@ -0,0 +1,10 @@
pragma experimental SMTChecker;
contract C {
function f() public returns(bool[]memory) {
this.f();
}
}
// ====
// EVMVersion: <=spuriousDragon
// ----
// Warning 6321: (74-86): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
@@ -0,0 +1,14 @@
pragma experimental SMTChecker;
contract C {
struct S {
string a;
}
S public s;
function g() public view returns (uint256) {
this.s();
}
}
// ====
// EVMVersion: <=spuriousDragon
// ----
// Warning 6321: (120-127): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
@@ -0,0 +1,11 @@
pragma experimental SMTChecker;
contract C {
string public s;
function g() public view returns (uint256) {
this.s();
}
}
// ====
// EVMVersion: <=spuriousDragon
// ----
// Warning 6321: (98-105): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.