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,8 @@
contract C {
modifier m1(uint[] storage a) { _; }
modifier m2(uint[] storage a) { _; }
uint[] s;
function f() m1(b) m2(b = s) internal view returns (uint[] storage b) {}
}
// ----
// TypeError: (129-130): This variable is of storage pointer type and can be accessed without prior assignment.