[SMTChecker] Add support to constructors

This commit is contained in:
Leonardo Alt
2019-11-28 14:43:23 +01:00
parent 301215f186
commit a352abe00d
46 changed files with 1051 additions and 172 deletions
@@ -0,0 +1,16 @@
pragma experimental SMTChecker;
contract C {
uint x;
constructor() public {
assert(x == 0);
x = 10;
}
function f(uint y) public view {
assert(y == x);
}
}
// ----
// Warning: (148-162): Assertion violation happens here