Fix internal error when using array slices

This commit is contained in:
Leonardo Alt
2020-04-22 23:20:10 +02:00
parent 6d98b907ef
commit cfe3686116
4 changed files with 37 additions and 3 deletions
@@ -0,0 +1,13 @@
pragma experimental SMTChecker;
contract C {
function f(bytes calldata x) external pure {
x[:18726387213];
x[18726387213:];
x[18726387213:111111111111111111];
}
}
// ----
// Warning: (94-109): Assertion checker does not yet implement this expression.
// Warning: (113-128): Assertion checker does not yet implement this expression.
// Warning: (132-165): Assertion checker does not yet implement this expression.
@@ -0,0 +1,13 @@
pragma experimental SMTChecker;
contract C {
function f(bytes calldata x) external pure {
bytes(x[:18726387213]);
bytes(x[18726387213:]);
bytes(x[18726387213:111111111111111111]);
}
}
// ----
// Warning: (100-115): Assertion checker does not yet implement this expression.
// Warning: (126-141): Assertion checker does not yet implement this expression.
// Warning: (152-185): Assertion checker does not yet implement this expression.