[SMTChecker] Added support for public getters through this.

This commit is contained in:
Martin Blicha
2020-12-02 16:06:48 +01:00
parent afe500e399
commit 2ee633f404
36 changed files with 662 additions and 27 deletions
@@ -0,0 +1,15 @@
pragma experimental SMTChecker;
contract C {
uint[2] public x = [42,1];
function f() public view {
assert(this.x(0) == x[0]); // should hold
assert(this.x(1) == x[1]); // should hold
assert(this.x(0) == 0); // should fail
}
}
// ----
// Warning 6328: (195-217): CHC: Assertion violation happens here.