Merge pull request #10539 from blishko/test-issue-10502

[SMTChecker] Adding test witnessing that SMTChecker no longer crashes when producing CEX with arrays
This commit is contained in:
Leonardo 2020-12-09 11:03:53 +01:00 committed by GitHub
commit 3ca4a5136d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,10 @@
pragma experimental SMTChecker;
contract C {
function f(bytes calldata x, uint y) external pure {
x[8][0];
x[8][5*y];
}
}
// ----
// Warning 4984: (118-121): CHC: Overflow (resulting value larger than 2**256 - 1) happens here.