Refactoring of the ControlFlowGraph and use for detecting all uninitialized storage accesses.

This commit is contained in:
Daniel Kirchner
2018-12-12 04:20:53 +01:00
parent 1476acb804
commit 788612d2ef
29 changed files with 470 additions and 371 deletions
@@ -0,0 +1,13 @@
contract C {
uint[] s;
modifier mod(uint[] storage b) {
_;
b[0] = 0;
}
function f() mod(a) internal returns (uint[] storage a)
{
a = s;
}
}
// ----
// TypeError: (120-121): This variable is of storage pointer type and can be accessed without prior assignment.