[SMTChecker] Fix tuple name for arrays

This commit is contained in:
Leonardo Alt
2020-08-07 12:28:10 +02:00
parent 241a564fca
commit ec31d971e6
8 changed files with 64 additions and 6 deletions
@@ -20,6 +20,9 @@ contract LoopFor2 {
assert(b[0] == 900);
}
}
// ====
// SMTSolvers: cvc4
// ----
// Warning 6328: (320-339): Assertion violation happens here
// Warning 6328: (343-362): Assertion violation happens here.
// Warning 4661: (296-316): Assertion violation happens here
// Warning 4661: (320-339): Assertion violation happens here
// Warning 4661: (343-362): Assertion violation happens here
@@ -26,4 +26,4 @@ contract C
}
}
// ----
// Warning 6328: (400-457): Assertion violation happens here
// Warning 6328: (400-457): Assertion violation happens here.
@@ -0,0 +1,7 @@
pragma experimental SMTChecker;
contract C {
uint[][] a;
function f(uint[1] memory x) public {
a.push(x);
}
}
@@ -0,0 +1,7 @@
pragma experimental SMTChecker;
contract C {
uint[][] a;
function f(uint[1][] memory x) public {
a.push(x[2]);
}
}
@@ -0,0 +1,9 @@
pragma experimental SMTChecker;
contract D {
bytes16[] inner;
bytes32[][] data;
function t() public {
data.push(inner);
}
}
@@ -0,0 +1,9 @@
pragma experimental SMTChecker;
contract D {
int16[] inner;
int[][] data;
function t() public {
data.push(inner);
}
}