[SMTChecker] Support array length

This commit is contained in:
Leonardo Alt
2020-05-14 23:32:29 +02:00
parent 7be4744341
commit a0c605aa85
44 changed files with 548 additions and 119 deletions
@@ -0,0 +1,13 @@
pragma experimental SMTChecker;
contract C {
uint[] arr;
function f() public view {
uint x = arr.length;
uint y = x;
assert(arr.length == y);
assert(arr.length != y);
}
}
// ----
// Warning: (153-176): Assertion violation happens here