Print @src and @use-src locations in AsmPrinter

This commit is contained in:
Mathias Baumann
2021-08-03 15:29:52 +02:00
parent c89b46c55e
commit 2ee6c7be64
34 changed files with 1319 additions and 109 deletions
@@ -6,12 +6,16 @@ Optimized IR:
* !USE AT YOUR OWN RISK! *
*=====================================================*/
/// @use-src 0:"constant_optimizer_yul/input.sol", 1:"#utility.yul"
object "C_12" {
code {
{
/// @src 0:61:418
mstore(64, 128)
if callvalue() { revert(0, 0) }
/// @src 0:103:238
sstore(0, shl(180, 1))
/// @src 0:61:418
let _1 := datasize("C_12_deployed")
codecopy(128, dataoffset("C_12_deployed"), _1)
return(128, _1)
@@ -20,9 +24,12 @@ object "C_12" {
object "C_12_deployed" {
code {
{
/// @src 0:61:418
mstore(64, 128)
if callvalue() { revert(0, 0) }
/// @src 0:279:410
sstore(0, 0x1000000000000000000000000000000000000000000000)
/// @src 0:61:418
stop()
}
}