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) }
|
2020-11-26 21:33:36 +00:00
|
|
|
codecopy(0, dataoffset("C_7_deployed"), datasize("C_7_deployed"))
|
|
|
|
return(0, datasize("C_7_deployed"))
|
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))
|
|
|
|
{
|
|
|
|
let selector := shift_right_224_unsigned(calldataload(0))
|
|
|
|
pop(selector)
|
|
|
|
}
|
|
|
|
pop(iszero(calldatasize()))
|
|
|
|
revert(0, 0)
|
|
|
|
}
|
|
|
|
function shift_right_224_unsigned(value) -> newValue
|
|
|
|
{ newValue := shr(224, value) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|