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,13 +6,17 @@ Optimized IR:
* !USE AT YOUR OWN RISK! *
*=====================================================*/
/// @use-src 0:"keccak_optimization_deploy_code/input.sol", 1:"#utility.yul"
object "C_12" {
code {
{
/// @src 0:62:463
mstore(64, 128)
if callvalue() { revert(0, 0) }
/// @src 0:103:275
mstore(0, 100)
sstore(0, keccak256(0, 32))
/// @src 0:62:463
let _1 := datasize("C_12_deployed")
codecopy(128, dataoffset("C_12_deployed"), _1)
return(128, _1)
@@ -21,10 +25,13 @@ object "C_12" {
object "C_12_deployed" {
code {
{
/// @src 0:62:463
mstore(64, 128)
if callvalue() { revert(0, 0) }
/// @src 0:317:454
mstore(0, 100)
sstore(0, 17385872270140913825666367956517731270094621555228275961425792378517567244498)
/// @src 0:62:463
stop()
}
}