2020-08-06 19:44:50 +00:00
|
|
|
Optimized IR:
|
2021-08-31 10:57:13 +00:00
|
|
|
/// @use-src 0:"name_simplifier/input.sol"
|
2020-08-11 09:18:22 +00:00
|
|
|
object "C_59" {
|
2020-08-06 19:44:50 +00:00
|
|
|
code {
|
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:346:625 "contract C {..."
|
2021-09-15 15:01:40 +00:00
|
|
|
let _1 := memoryguard(0x80)
|
|
|
|
mstore(64, _1)
|
2020-08-06 19:44:50 +00:00
|
|
|
if callvalue() { revert(0, 0) }
|
2021-09-15 15:01:40 +00:00
|
|
|
let _2 := datasize("C_59_deployed")
|
|
|
|
codecopy(_1, dataoffset("C_59_deployed"), _2)
|
|
|
|
return(_1, _2)
|
2020-08-06 19:44:50 +00:00
|
|
|
}
|
|
|
|
}
|
2021-08-31 10:57:13 +00:00
|
|
|
/// @use-src 0:"name_simplifier/input.sol"
|
2020-08-11 09:18:22 +00:00
|
|
|
object "C_59_deployed" {
|
2020-08-06 19:44:50 +00:00
|
|
|
code {
|
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:346:625 "contract C {..."
|
2022-05-23 10:54:18 +00:00
|
|
|
let _1 := memoryguard(0x80)
|
|
|
|
let _2 := 4
|
|
|
|
if iszero(lt(calldatasize(), _2))
|
2020-08-06 19:44:50 +00:00
|
|
|
{
|
2022-05-23 10:54:18 +00:00
|
|
|
let _3 := 0
|
|
|
|
if eq(0xf8eddcc6, shr(224, calldataload(_3)))
|
2020-08-06 19:44:50 +00:00
|
|
|
{
|
2022-05-23 10:54:18 +00:00
|
|
|
if callvalue() { revert(_3, _3) }
|
|
|
|
let _4 := 32
|
|
|
|
if slt(add(calldatasize(), not(3)), _4) { revert(_3, _3) }
|
|
|
|
let offset := calldataload(_2)
|
|
|
|
let _5 := 0xffffffffffffffff
|
|
|
|
if gt(offset, _5) { revert(_3, _3) }
|
|
|
|
if iszero(slt(add(offset, 35), calldatasize())) { revert(_3, _3) }
|
|
|
|
let _6 := calldataload(add(_2, offset))
|
|
|
|
let _7 := 36
|
|
|
|
if gt(_6, _5)
|
|
|
|
{
|
|
|
|
mstore(_3, shl(224, 0x4e487b71))
|
|
|
|
mstore(_2, 0x41)
|
|
|
|
revert(_3, _7)
|
|
|
|
}
|
|
|
|
let _8 := shl(5, _6)
|
|
|
|
let _9 := not(31)
|
|
|
|
let newFreePtr := add(_1, and(add(_8, 63), _9))
|
|
|
|
if or(gt(newFreePtr, _5), lt(newFreePtr, _1))
|
|
|
|
{
|
|
|
|
mstore(_3, shl(224, 0x4e487b71))
|
|
|
|
mstore(_2, 0x41)
|
|
|
|
revert(_3, _7)
|
|
|
|
}
|
|
|
|
let _10 := 64
|
|
|
|
mstore(_10, newFreePtr)
|
|
|
|
let dst := _1
|
|
|
|
mstore(_1, _6)
|
|
|
|
dst := add(_1, _4)
|
2020-07-06 11:55:09 +00:00
|
|
|
let dst_1 := dst
|
2022-05-23 10:54:18 +00:00
|
|
|
let srcEnd := add(add(offset, _8), _7)
|
|
|
|
if gt(srcEnd, calldatasize()) { revert(_3, _3) }
|
|
|
|
let src := add(offset, _7)
|
|
|
|
for { } lt(src, srcEnd) { src := add(src, _4) }
|
|
|
|
{
|
|
|
|
if slt(sub(calldatasize(), src), _4) { revert(_3, _3) }
|
|
|
|
let memPtr := mload(_10)
|
|
|
|
let newFreePtr_1 := add(memPtr, _4)
|
|
|
|
if or(gt(newFreePtr_1, _5), lt(newFreePtr_1, memPtr))
|
|
|
|
{
|
|
|
|
mstore(_3, shl(224, 0x4e487b71))
|
|
|
|
mstore(_2, 0x41)
|
|
|
|
revert(_3, _7)
|
|
|
|
}
|
|
|
|
mstore(_10, newFreePtr_1)
|
|
|
|
mstore(memPtr, calldataload(src))
|
|
|
|
mstore(dst, memPtr)
|
|
|
|
dst := add(dst, _4)
|
|
|
|
}
|
|
|
|
if iszero(mload(_1))
|
|
|
|
{
|
|
|
|
mstore(_3, shl(224, 0x4e487b71))
|
|
|
|
mstore(_2, 0x32)
|
|
|
|
revert(_3, _7)
|
|
|
|
}
|
|
|
|
sstore(_3, mload(/** @src 0:469:474 "_s[0]" */ mload(dst_1)))
|
|
|
|
/// @src 0:346:625 "contract C {..."
|
|
|
|
if iszero(lt(/** @src 0:492:493 "1" */ 0x01, /** @src 0:346:625 "contract C {..." */ mload(_1)))
|
2020-07-06 11:55:09 +00:00
|
|
|
{
|
2022-05-23 10:54:18 +00:00
|
|
|
mstore(_3, shl(224, 0x4e487b71))
|
|
|
|
mstore(_2, 0x32)
|
|
|
|
revert(_3, _7)
|
2020-07-06 11:55:09 +00:00
|
|
|
}
|
2022-05-23 10:54:18 +00:00
|
|
|
let _11 := mload(/** @src 0:489:494 "_s[1]" */ mload(/** @src 0:346:625 "contract C {..." */ add(_1, _10)))
|
|
|
|
sstore(0x02, _11)
|
|
|
|
let memPtr_1 := mload(_10)
|
|
|
|
let newFreePtr_2 := add(memPtr_1, 160)
|
|
|
|
if or(gt(newFreePtr_2, _5), lt(newFreePtr_2, memPtr_1))
|
|
|
|
{
|
|
|
|
mstore(_3, shl(224, 0x4e487b71))
|
|
|
|
mstore(_2, 0x41)
|
|
|
|
revert(_3, _7)
|
|
|
|
}
|
|
|
|
mstore(_10, newFreePtr_2)
|
|
|
|
mstore(memPtr_1, 100)
|
|
|
|
mstore(add(memPtr_1, _4), "longstringlongstringlongstringlo")
|
|
|
|
mstore(add(memPtr_1, _10), "ngstringlongstringlongstringlong")
|
|
|
|
let _12 := 96
|
|
|
|
mstore(add(memPtr_1, _12), "stringlongstringlongstringlongst")
|
|
|
|
mstore(add(memPtr_1, 128), "ring")
|
|
|
|
let memPos := mload(_10)
|
|
|
|
mstore(memPos, _11)
|
|
|
|
mstore(add(memPos, _4), _10)
|
|
|
|
let length := mload(memPtr_1)
|
|
|
|
mstore(add(memPos, _10), length)
|
|
|
|
let i := _3
|
|
|
|
for { } lt(i, length) { i := add(i, _4) }
|
|
|
|
{
|
|
|
|
mstore(add(add(memPos, i), _12), mload(add(add(memPtr_1, i), _4)))
|
|
|
|
}
|
2022-07-27 16:46:36 +00:00
|
|
|
mstore(add(add(memPos, length), _12), _3)
|
2022-05-23 10:54:18 +00:00
|
|
|
return(memPos, add(sub(add(memPos, and(add(length, 31), _9)), memPos), _12))
|
2020-08-06 19:44:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
revert(0, 0)
|
|
|
|
}
|
|
|
|
}
|
2021-06-08 14:35:37 +00:00
|
|
|
data ".metadata" hex"<BYTECODE REMOVED>"
|
2020-08-06 19:44:50 +00:00
|
|
|
}
|
|
|
|
}
|