mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
45 lines
17 KiB
JSON
45 lines
17 KiB
JSON
{"contracts":{"a.sol":{"A":{"evm":{"bytecode":{"generatedSources":[],"object":"<BYTECODE REMOVED>"},"deployedBytecode":{"generatedSources":[{"ast":{"nodeType":"YulBlock","src":"0:1501:1","statements":[{"nodeType":"YulBlock","src":"6:3:1","statements":[]},{"body":{"nodeType":"YulBlock","src":"109:1076:1","statements":[{"nodeType":"YulVariableDeclaration","src":"119:12:1","value":{"kind":"number","nodeType":"YulLiteral","src":"129:2:1","type":"","value":"32"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"123:2:1","type":""}]},{"body":{"nodeType":"YulBlock","src":"176:26:1","statements":[{"expression":{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"185:6:1"},{"name":"value0","nodeType":"YulIdentifier","src":"193:6:1"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"178:6:1"},"nodeType":"YulFunctionCall","src":"178:22:1"},"nodeType":"YulExpressionStatement","src":"178:22:1"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"151:7:1"},{"name":"headStart","nodeType":"YulIdentifier","src":"160:9:1"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"147:3:1"},"nodeType":"YulFunctionCall","src":"147:23:1"},{"name":"_1","nodeType":"YulIdentifier","src":"172:2:1"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"143:3:1"},"nodeType":"YulFunctionCall","src":"143:32:1"},"nodeType":"YulIf","src":"140:2:1"},{"nodeType":"YulVariableDeclaration","src":"211:37:1","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"238:9:1"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"225:12:1"},"nodeType":"YulFunctionCall","src":"225:23:1"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"215:6:1","type":""}]},{"nodeType":"YulVariableDeclaration","src":"257:28:1","value":{"kind":"number","nodeType":"YulLiteral","src":"267:18:1","type":"","value":"0xffffffffffffffff"},"variables":[{"name":"_2","nodeType":"YulTypedName","src":"261:2:1","type":""}]},{"body":{"nodeType":"YulBlock","src":"312:26:1","statements":[{"expression":{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"321:6:1"},{"name":"value0","nodeType":"YulIdentifier","src":"329:6:1"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"314:6:1"},"nodeType":"YulFunctionCall","src":"314:22:1"},"nodeType":"YulExpressionStatement","src":"314:22:1"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"300:6:1"},{"name":"_2","nodeType":"YulIdentifier","src":"308:2:1"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"297:2:1"},"nodeType":"YulFunctionCall","src":"297:14:1"},"nodeType":"YulIf","src":"294:2:1"},{"nodeType":"YulVariableDeclaration","src":"347:32:1","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"361:9:1"},{"name":"offset","nodeType":"YulIdentifier","src":"372:6:1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"357:3:1"},"nodeType":"YulFunctionCall","src":"357:22:1"},"variables":[{"name":"_3","nodeType":"YulTypedName","src":"351:2:1","type":""}]},{"body":{"nodeType":"YulBlock","src":"427:26:1","statements":[{"expression":{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"436:6:1"},{"name":"value0","nodeType":"YulIdentifier","src":"444:6:1"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"429:6:1"},"nodeType":"YulFunctionCall","src":"429:22:1"},"nodeType":"YulExpressionStatement","src":"429:22:1"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"406:2:1"},{"kind":"number","nodeType":"YulLiteral","src":"410:4:1","type":"","value":"0x1f"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"402:3:1"},"nodeType":"YulFunctionCall","src":"402:13:1"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"417:7:1"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"398:3:1"},"nodeType":"YulFunctionCall","src":"398:27:1"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"391:6:1"},"nodeType":"YulFunctionCall","src":"391:35:1"},"nodeType":"YulIf","src":"388:2:1"},{"nodeType":"YulVariableDeclaration","src":"462:26:1","value":{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"485:2:1"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"472:12:1"},"nodeType":"YulFunctionCall","src":"472:16:1"},"variables":[{"name":"_4","nodeType":"YulTypedName","src":"466:2:1","type":""}]},{"body":{"nodeType":"YulBlock","src":"511:22:1","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x41","nodeType":"YulIdentifier","src":"513:16:1"},"nodeType":"YulFunctionCall","src":"513:18:1"},"nodeType":"YulExpressionStatement","src":"513:18:1"}]},"condition":{"arguments":[{"name":"_4","nodeType":"YulIdentifier","src":"503:2:1"},{"name":"_2","nodeType":"YulIdentifier","src":"507:2:1"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"500:2:1"},"nodeType":"YulFunctionCall","src":"500:10:1"},"nodeType":"YulIf","src":"497:2:1"},{"nodeType":"YulVariableDeclaration","src":"542:20:1","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"556:1:1","type":"","value":"5"},{"name":"_4","nodeType":"YulIdentifier","src":"559:2:1"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"552:3:1"},"nodeType":"YulFunctionCall","src":"552:10:1"},"variables":[{"name":"_5","nodeType":"YulTypedName","src":"546:2:1","type":""}]},{"nodeType":"YulVariableDeclaration","src":"571:23:1","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"591:2:1","type":"","value":"64"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"585:5:1"},"nodeType":"YulFunctionCall","src":"585:9:1"},"variables":[{"name":"memPtr","nodeType":"YulTypedName","src":"575:6:1","type":""}]},{"nodeType":"YulVariableDeclaration","src":"603:56:1","value":{"arguments":[{"name":"memPtr","nodeType":"YulIdentifier","src":"625:6:1"},{"arguments":[{"arguments":[{"name":"_5","nodeType":"YulIdentifier","src":"641:2:1"},{"kind":"number","nodeType":"YulLiteral","src":"645:2:1","type":"","value":"63"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"637:3:1"},"nodeType":"YulFunctionCall","src":"637:11:1"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"654:2:1","type":"","value":"31"}],"functionName":{"name":"not","nodeType":"YulIdentifier","src":"650:3:1"},"nodeType":"YulFunctionCall","src":"650:7:1"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"633:3:1"},"nodeType":"YulFunctionCall","src":"633:25:1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"621:3:1"},"nodeType":"YulFunctionCall","src":"621:38:1"},"variables":[{"name":"newFreePtr","nodeType":"YulTypedName","src":"607:10:1","type":""}]},{"body":{"nodeType":"YulBlock","src":"718:22:1","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x41","nodeType":"YulIdentifier","src":"720:16:1"},"nodeType":"YulFunctionCall","src":"720:18:1"},"nodeType":"YulExpressionStatement","src":"720:18:1"}]},"condition":{"arguments":[{"arguments":[{"name":"newFreePtr","nodeType":"YulIdentifier","src":"677:10:1"},{"name":"_2","nodeType":"YulIdentifier","src":"689:2:1"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"674:2:1"},"nodeType":"YulFunctionCall","src":"674:18:1"},{"arguments":[{"name":"newFreePtr","nodeType":"YulIdentifier","src":"697:10:1"},{"name":"memPtr","nodeType":"YulIdentifier","src":"709:6:1"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"694:2:1"},"nodeType":"YulFunctionCall","src":"694:22:1"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"671:2:1"},"nodeType":"YulFunctionCall","src":"671:46:1"},"nodeType":"YulIf","src":"668:2:1"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"756:2:1","type":"","value":"64"},{"name":"newFreePtr","nodeType":"YulIdentifier","src":"760:10:1"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"749:6:1"},"nodeType":"YulFunctionCall","src":"749:22:1"},"nodeType":"YulExpressionStatement","src":"749:22:1"},{"nodeType":"YulVariableDeclaration","src":"780:17:1","value":{"name":"memPtr","nodeType":"YulIdentifier","src":"791:6:1"},"variables":[{"name":"dst","nodeType":"YulTypedName","src":"784:3:1","type":""}]},{"expression":{"arguments":[{"name":"memPtr","nodeType":"YulIdentifier","src":"813:6:1"},{"name":"_4","nodeType":"YulIdentifier","src":"821:2:1"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"806:6:1"},"nodeType":"YulFunctionCall","src":"806:18:1"},"nodeType":"YulExpressionStatement","src":"806:18:1"},{"nodeType":"YulAssignment","src":"833:22:1","value":{"arguments":[{"name":"memPtr","nodeType":"YulIdentifier","src":"844:6:1"},{"name":"_1","nodeType":"YulIdentifier","src":"852:2:1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"840:3:1"},"nodeType":"YulFunctionCall","src":"840:15:1"},"variableNames":[{"name":"dst","nodeType":"YulIdentifier","src":"833:3:1"}]},{"nodeType":"YulVariableDeclaration","src":"864:22:1","value":{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"879:2:1"},{"name":"_1","nodeType":"YulIdentifier","src":"883:2:1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"875:3:1"},"nodeType":"YulFunctionCall","src":"875:11:1"},"variables":[{"name":"src","nodeType":"YulTypedName","src":"868:3:1","type":""}]},{"body":{"nodeType":"YulBlock","src":"932:26:1","statements":[{"expression":{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"941:6:1"},{"name":"value0","nodeType":"YulIdentifier","src":"949:6:1"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"934:6:1"},"nodeType":"YulFunctionCall","src":"934:22:1"},"nodeType":"YulExpressionStatement","src":"934:22:1"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"909:2:1"},{"name":"_5","nodeType":"YulIdentifier","src":"913:2:1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"905:3:1"},"nodeType":"YulFunctionCall","src":"905:11:1"},{"name":"_1","nodeType":"YulIdentifier","src":"918:2:1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"901:3:1"},"nodeType":"YulFunctionCall","src":"901:20:1"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"923:7:1"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"898:2:1"},"nodeType":"YulFunctionCall","src":"898:33:1"},"nodeType":"YulIf","src":"895:2:1"},{"nodeType":"YulVariableDeclaration","src":"967:15:1","value":{"name":"value0","nodeType":"YulIdentifier","src":"976:6:1"},"variables":[{"name":"i","nodeType":"YulTypedName","src":"971:1:1","type":""}]},{"body":{"nodeType":"YulBlock","src":"1036:118:1","statements":[{"expression":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"1057:3:1"},{"arguments":[{"name":"src","nodeType":"YulIdentifier","src":"1075:3:1"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1062:12:1"},"nodeType":"YulFunctionCall","src":"1062:17:1"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1050:6:1"},"nodeType":"YulFunctionCall","src":"1050:30:1"},"nodeType":"YulExpressionStatement","src":"1050:30:1"},{"nodeType":"YulAssignment","src":"1093:19:1","value":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"1104:3:1"},{"name":"_1","nodeType":"YulIdentifier","src":"1109:2:1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1100:3:1"},"nodeType":"YulFunctionCall","src":"1100:12:1"},"variableNames":[{"name":"dst","nodeType":"YulIdentifier","src":"1093:3:1"}]},{"nodeType":"YulAssignment","src":"1125:19:1","value":{"arguments":[{"name":"src","nodeType":"YulIdentifier","src":"1136:3:1"},{"name":"_1","nodeType":"YulIdentifier","src":"1141:2:1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1132:3:1"},"nodeType":"YulFunctionCall","src":"1132:12:1"},"variableNames":[{"name":"src","nodeType":"YulIdentifier","src":"1125:3:1"}]}]},"condition":{"arguments":[{"name":"i","nodeType":"YulIdentifier","src":"1002:1:1"},{"name":"_4","nodeType":"YulIdentifier","src":"1005:2:1"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"999:2:1"},"nodeType":"YulFunctionCall","src":"999:9:1"},"nodeType":"YulForLoop","post":{"nodeType":"YulBlock","src":"1009:18:1","statements":[{"nodeType":"YulAssignment","src":"1011:14:1","value":{"arguments":[{"name":"i","nodeType":"YulIdentifier","src":"1020:1:1"},{"kind":"number","nodeType":"YulLiteral","src":"1023:1:1","type":"","value":"1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1016:3:1"},"nodeType":"YulFunctionCall","src":"1016:9:1"},"variableNames":[{"name":"i","nodeType":"YulIdentifier","src":"1011:1:1"}]}]},"pre":{"nodeType":"YulBlock","src":"995:3:1","statements":[]},"src":"991:163:1"},{"nodeType":"YulAssignment","src":"1163:16:1","value":{"name":"memPtr","nodeType":"YulIdentifier","src":"1173:6:1"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"1163:6:1"}]}]},"name":"abi_decode_tuple_t_array$_t_uint256_$dyn_memory_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"75:9:1","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"86:7:1","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"98:6:1","type":""}],"src":"14:1171:1"},{"body":{"nodeType":"YulBlock","src":"1291:76:1","statements":[{"nodeType":"YulAssignment","src":"1301:26:1","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1313:9:1"},{"kind":"number","nodeType":"YulLiteral","src":"1324:2:1","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1309:3:1"},"nodeType":"YulFunctionCall","src":"1309:18:1"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"1301:4:1"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1343:9:1"},{"name":"value0","nodeType":"YulIdentifier","src":"1354:6:1"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1336:6:1"},"nodeType":"YulFunctionCall","src":"1336:25:1"},"nodeType":"YulExpressionStatement","src":"1336:25:1"}]},"name":"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1260:9:1","type":""},{"name":"value0","nodeType":"YulTypedName","src":"1271:6:1","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"1282:4:1","type":""}],"src":"1190:177:1"},{"body":{"nodeType":"YulBlock","src":"1404:95:1","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1421:1:1","type":"","value":"0"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1428:3:1","type":"","value":"224"},{"kind":"number","nodeType":"YulLiteral","src":"1433:10:1","type":"","value":"0x4e487b71"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"1424:3:1"},"nodeType":"YulFunctionCall","src":"1424:20:1"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1414:6:1"},"nodeType":"YulFunctionCall","src":"1414:31:1"},"nodeType":"YulExpressionStatement","src":"1414:31:1"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1461:1:1","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"1464:4:1","type":"","value":"0x41"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1454:6:1"},"nodeType":"YulFunctionCall","src":"1454:15:1"},"nodeType":"YulExpressionStatement","src":"1454:15:1"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1485:1:1","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1488:4:1","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"1478:6:1"},"nodeType":"YulFunctionCall","src":"1478:15:1"},"nodeType":"YulExpressionStatement","src":"1478:15:1"}]},"name":"panic_error_0x41","nodeType":"YulFunctionDefinition","src":"1372:127:1"}]},"contents":"{
|
|
{ }
|
|
function abi_decode_tuple_t_array$_t_uint256_$dyn_memory_ptr(headStart, dataEnd) -> value0
|
|
{
|
|
let _1 := 32
|
|
if slt(sub(dataEnd, headStart), _1) { revert(value0, value0) }
|
|
let offset := calldataload(headStart)
|
|
let _2 := 0xffffffffffffffff
|
|
if gt(offset, _2) { revert(value0, value0) }
|
|
let _3 := add(headStart, offset)
|
|
if iszero(slt(add(_3, 0x1f), dataEnd)) { revert(value0, value0) }
|
|
let _4 := calldataload(_3)
|
|
if gt(_4, _2) { panic_error_0x41() }
|
|
let _5 := shl(5, _4)
|
|
let memPtr := mload(64)
|
|
let newFreePtr := add(memPtr, and(add(_5, 63), not(31)))
|
|
if or(gt(newFreePtr, _2), lt(newFreePtr, memPtr)) { panic_error_0x41() }
|
|
mstore(64, newFreePtr)
|
|
let dst := memPtr
|
|
mstore(memPtr, _4)
|
|
dst := add(memPtr, _1)
|
|
let src := add(_3, _1)
|
|
if gt(add(add(_3, _5), _1), dataEnd) { revert(value0, value0) }
|
|
let i := value0
|
|
for { } lt(i, _4) { i := add(i, 1) }
|
|
{
|
|
mstore(dst, calldataload(src))
|
|
dst := add(dst, _1)
|
|
src := add(src, _1)
|
|
}
|
|
value0 := memPtr
|
|
}
|
|
function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart, value0) -> tail
|
|
{
|
|
tail := add(headStart, 32)
|
|
mstore(headStart, value0)
|
|
}
|
|
function panic_error_0x41()
|
|
{
|
|
mstore(0, shl(224, 0x4e487b71))
|
|
mstore(4, 0x41)
|
|
revert(0, 0x24)
|
|
}
|
|
}","id":1,"language":"Yul","name":"#utility.yul"}]}}}}},"sources":{"a.sol":{"id":0}}}
|