2020-12-09 09:52:49 +00:00
|
|
|
contract C {
|
|
|
|
uint[] data;
|
|
|
|
function f(uint x, uint[] calldata input) public view returns (uint, uint) {
|
|
|
|
(uint a, uint[] calldata b) = fun(input, data);
|
|
|
|
return (a, b.length + x);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function fun(uint[] calldata _x, uint[] storage _y) view returns (uint, uint[] calldata) {
|
|
|
|
return (_y[0], _x);
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2021-07-16 13:44:36 +00:00
|
|
|
// SMTIgnoreCex: yes
|
2020-12-09 09:52:49 +00:00
|
|
|
// ----
|
2021-07-16 13:44:36 +00:00
|
|
|
// Warning 4984: (168-180): CHC: Overflow (resulting value larger than 2**256 - 1) happens here.
|
|
|
|
// Warning 6368: (289-294): CHC: Out of bounds access happens here.
|