solidity/test/libyul/yulOptimizerTests/ssaAndBack/ssaReverse.yul

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-01-16 10:44:45 +00:00
{
function abi_decode_t_bytes_calldata_ptr(offset_12, end_13) -> arrayPos_14, length_15
{
if iszero(slt(add(offset_12, 0x1f), end_13))
{
revert(0, 0)
}
length_15 := calldataload(offset_12)
if gt(length_15, 0xffffffffffffffff)
{
revert(0, 0)
}
arrayPos_14 := add(offset_12, 0x20)
if gt(add(add(offset_12, length_15), 0x20), end_13)
{
revert(0, 0)
}
}
// prevent removal of the function
let a,b := abi_decode_t_bytes_calldata_ptr(mload(0),mload(1))
mstore(a,b)
}
// ----
// step: ssaAndBack
//
2019-01-16 10:44:45 +00:00
// {
2021-11-09 12:25:25 +00:00
// {
// let a, b := abi_decode_t_bytes_calldata_ptr(mload(0), mload(1))
// mstore(a, b)
// }
2019-01-16 10:44:45 +00:00
// function abi_decode_t_bytes_calldata_ptr(offset_12, end_13) -> arrayPos_14, length_15
// {
// if iszero(slt(add(offset_12, 0x1f), end_13)) { revert(0, 0) }
2019-01-16 10:44:45 +00:00
// length_15 := calldataload(offset_12)
// if gt(length_15, 0xffffffffffffffff) { revert(0, 0) }
2019-01-16 10:44:45 +00:00
// arrayPos_14 := add(offset_12, 0x20)
// if gt(add(add(offset_12, length_15), 0x20), end_13) { revert(0, 0) }
2019-01-16 10:44:45 +00:00
// }
// }