2020-04-24 12:24:48 +00:00
|
|
|
Optimized IR:
|
|
|
|
/*******************************************************
|
|
|
|
* WARNING *
|
|
|
|
* Solidity to Yul compilation is still EXPERIMENTAL *
|
|
|
|
* It can result in LOSS OF FUNDS or worse *
|
|
|
|
* !USE AT YOUR OWN RISK! *
|
|
|
|
*******************************************************/
|
|
|
|
|
2020-11-26 21:33:36 +00:00
|
|
|
object "C_7" {
|
2020-04-24 12:24:48 +00:00
|
|
|
code {
|
|
|
|
{
|
2020-10-15 14:25:15 +00:00
|
|
|
mstore(64, 128)
|
2020-04-24 12:24:48 +00:00
|
|
|
if callvalue() { revert(0, 0) }
|
2021-04-29 09:43:27 +00:00
|
|
|
let _1 := allocate_unbounded()
|
|
|
|
codecopy(_1, dataoffset("C_7_deployed"), datasize("C_7_deployed"))
|
|
|
|
return(_1, datasize("C_7_deployed"))
|
2020-04-24 12:24:48 +00:00
|
|
|
}
|
2021-04-29 09:43:27 +00:00
|
|
|
function allocate_unbounded() -> memPtr
|
|
|
|
{ memPtr := mload(64) }
|
2020-04-24 12:24:48 +00:00
|
|
|
}
|
2020-11-26 21:33:36 +00:00
|
|
|
object "C_7_deployed" {
|
2020-04-24 12:24:48 +00:00
|
|
|
code {
|
|
|
|
{
|
2020-10-15 14:25:15 +00:00
|
|
|
mstore(64, 128)
|
2020-04-24 12:24:48 +00:00
|
|
|
if iszero(lt(calldatasize(), 4))
|
|
|
|
{
|
2021-01-25 15:57:25 +00:00
|
|
|
let selector := shift_right_unsigned(calldataload(0))
|
2020-04-24 12:24:48 +00:00
|
|
|
pop(selector)
|
|
|
|
}
|
|
|
|
pop(iszero(calldatasize()))
|
|
|
|
revert(0, 0)
|
|
|
|
}
|
2021-01-25 15:57:25 +00:00
|
|
|
function shift_right_unsigned(value) -> newValue
|
2020-04-24 12:24:48 +00:00
|
|
|
{ newValue := shr(224, value) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|