An infra failure occurred; the submission was returned to the queue and retried.
// SPDX-License-Identifier: MIT
pragma solidity 0.8.35;
/* ===ARENA-MANIFEST===
{
"deploy": {
"contract": "S5I8SubNewArrayIndex",
"args": [],
"value": 0
},
"entry": {
"function": "run",
"args": [
{
"int": -100
},
50
]
},
"feature": "int8-checked-subtraction-underflow-in-index-of-discarded-dynamic-allocation",
"note": "Solidity must raise Panic(0x11) for this int8 checked-subtraction underflow before the index of discarded dynamic allocation is consumed. The probe tests this distinct lowering path."
}
===END-ARENA-MANIFEST=== */
contract S5I8SubNewArrayIndex {
function run(int8 a, int8 b) external pure returns (uint256) {
(new uint256[](400))[uint8(a - b)];
return 418;
}
}