solidity/test/cmdlineTests/constant_optimizer_yul/output
2022-03-14 14:48:00 +01:00

33 lines
1.0 KiB
Plaintext

Optimized IR:
/// @use-src 0:"constant_optimizer_yul/input.sol"
object "C_12" {
code {
{
/// @src 0:61:418 "contract C {..."
let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) }
/// @src 0:103:238 "assembly {..."
sstore(0, shl(180, 1))
/// @src 0:61:418 "contract C {..."
let _2 := datasize("C_12_deployed")
codecopy(_1, dataoffset("C_12_deployed"), _2)
return(_1, _2)
}
}
/// @use-src 0:"constant_optimizer_yul/input.sol"
object "C_12_deployed" {
code {
{
/// @src 0:61:418 "contract C {..."
if callvalue() { revert(0, 0) }
/// @src 0:279:410 "assembly {..."
sstore(0, 0x1000000000000000000000000000000000000000000000)
/// @src 0:61:418 "contract C {..."
stop()
}
}
data ".metadata" hex"<BYTECODE REMOVED>"
}
}