2019-10-15 10:38:12 +00:00
|
|
|
{
|
|
|
|
"absolutePath": "a",
|
|
|
|
"exportedSymbols":
|
|
|
|
{
|
|
|
|
"C":
|
|
|
|
[
|
2020-08-31 15:37:03 +00:00
|
|
|
12
|
2019-10-15 10:38:12 +00:00
|
|
|
]
|
|
|
|
},
|
2020-08-31 15:37:03 +00:00
|
|
|
"id": 13,
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "SourceUnit",
|
|
|
|
"nodes":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"abstract": false,
|
|
|
|
"baseContracts": [],
|
2021-09-28 09:05:52 +00:00
|
|
|
"canonicalName": "C",
|
2019-10-15 10:38:12 +00:00
|
|
|
"contractDependencies": [],
|
|
|
|
"contractKind": "contract",
|
|
|
|
"fullyImplemented": true,
|
2020-08-31 15:37:03 +00:00
|
|
|
"id": 12,
|
2019-10-15 10:38:12 +00:00
|
|
|
"linearizedBaseContracts":
|
|
|
|
[
|
2020-08-31 15:37:03 +00:00
|
|
|
12
|
2019-10-15 10:38:12 +00:00
|
|
|
],
|
|
|
|
"name": "C",
|
2021-02-10 17:40:05 +00:00
|
|
|
"nameLocation": "9:1:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "ContractDefinition",
|
|
|
|
"nodes":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"canonicalName": "C.S",
|
|
|
|
"id": 3,
|
|
|
|
"members":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"constant": false,
|
|
|
|
"id": 2,
|
2020-04-07 09:10:10 +00:00
|
|
|
"mutability": "mutable",
|
2019-10-15 10:38:12 +00:00
|
|
|
"name": "x",
|
2021-02-10 17:40:05 +00:00
|
|
|
"nameLocation": "33:1:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "VariableDeclaration",
|
|
|
|
"scope": 3,
|
|
|
|
"src": "28:6:1",
|
|
|
|
"stateVariable": false,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions":
|
|
|
|
{
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
},
|
|
|
|
"typeName":
|
|
|
|
{
|
|
|
|
"id": 1,
|
|
|
|
"name": "uint",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
|
|
|
"src": "28:4:1",
|
|
|
|
"typeDescriptions":
|
|
|
|
{
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "internal"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "S",
|
2021-02-10 17:40:05 +00:00
|
|
|
"nameLocation": "24:1:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "StructDefinition",
|
2020-08-31 15:37:03 +00:00
|
|
|
"scope": 12,
|
2019-10-15 10:38:12 +00:00
|
|
|
"src": "17:20:1",
|
|
|
|
"visibility": "public"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"constant": false,
|
2020-08-31 15:37:03 +00:00
|
|
|
"id": 6,
|
2020-04-07 09:10:10 +00:00
|
|
|
"mutability": "mutable",
|
2019-10-15 10:38:12 +00:00
|
|
|
"name": "s",
|
2021-02-10 17:40:05 +00:00
|
|
|
"nameLocation": "44:1:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "VariableDeclaration",
|
2020-08-31 15:37:03 +00:00
|
|
|
"scope": 12,
|
2019-10-15 10:38:12 +00:00
|
|
|
"src": "42:3:1",
|
|
|
|
"stateVariable": true,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions":
|
|
|
|
{
|
|
|
|
"typeIdentifier": "t_struct$_S_$3_storage",
|
|
|
|
"typeString": "struct C.S"
|
|
|
|
},
|
|
|
|
"typeName":
|
|
|
|
{
|
2020-08-31 15:37:03 +00:00
|
|
|
"id": 5,
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "UserDefinedTypeName",
|
2020-08-31 15:37:03 +00:00
|
|
|
"pathNode":
|
|
|
|
{
|
|
|
|
"id": 4,
|
|
|
|
"name": "S",
|
2022-06-08 16:13:49 +00:00
|
|
|
"nameLocations":
|
|
|
|
[
|
|
|
|
"42:1:1"
|
|
|
|
],
|
2020-08-31 15:37:03 +00:00
|
|
|
"nodeType": "IdentifierPath",
|
|
|
|
"referencedDeclaration": 3,
|
|
|
|
"src": "42:1:1"
|
|
|
|
},
|
2019-10-15 10:38:12 +00:00
|
|
|
"referencedDeclaration": 3,
|
|
|
|
"src": "42:1:1",
|
|
|
|
"typeDescriptions":
|
|
|
|
{
|
|
|
|
"typeIdentifier": "t_struct$_S_$3_storage_ptr",
|
|
|
|
"typeString": "struct C.S"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "internal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"body":
|
|
|
|
{
|
2020-08-31 15:37:03 +00:00
|
|
|
"id": 10,
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "Block",
|
|
|
|
"src": "76:70:1",
|
|
|
|
"statements":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"AST":
|
|
|
|
{
|
2023-05-02 13:34:12 +00:00
|
|
|
"nativeSrc": "95:45:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "YulBlock",
|
|
|
|
"src": "95:45:1",
|
|
|
|
"statements":
|
|
|
|
[
|
|
|
|
{
|
2023-05-02 13:34:12 +00:00
|
|
|
"nativeSrc": "97:17:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "YulVariableDeclaration",
|
|
|
|
"src": "97:17:1",
|
|
|
|
"value":
|
|
|
|
{
|
2020-07-01 17:25:14 +00:00
|
|
|
"name": "s.offset",
|
2023-05-02 13:34:12 +00:00
|
|
|
"nativeSrc": "106:8:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "YulIdentifier",
|
|
|
|
"src": "106:8:1"
|
|
|
|
},
|
|
|
|
"variables":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "x",
|
2023-05-02 13:34:12 +00:00
|
|
|
"nativeSrc": "101:1:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "YulTypedName",
|
|
|
|
"src": "101:1:1",
|
|
|
|
"type": ""
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-05-02 13:34:12 +00:00
|
|
|
"nativeSrc": "115:23:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "YulVariableDeclaration",
|
|
|
|
"src": "115:23:1",
|
|
|
|
"value":
|
|
|
|
{
|
|
|
|
"arguments":
|
|
|
|
[
|
|
|
|
{
|
2020-07-01 17:25:14 +00:00
|
|
|
"name": "s.slot",
|
2023-05-02 13:34:12 +00:00
|
|
|
"nativeSrc": "128:6:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "YulIdentifier",
|
|
|
|
"src": "128:6:1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"kind": "number",
|
2023-05-02 13:34:12 +00:00
|
|
|
"nativeSrc": "136:1:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "YulLiteral",
|
|
|
|
"src": "136:1:1",
|
|
|
|
"type": "",
|
|
|
|
"value": "2"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"functionName":
|
|
|
|
{
|
|
|
|
"name": "mul",
|
2023-05-02 13:34:12 +00:00
|
|
|
"nativeSrc": "124:3:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "YulIdentifier",
|
|
|
|
"src": "124:3:1"
|
|
|
|
},
|
2023-05-02 13:34:12 +00:00
|
|
|
"nativeSrc": "124:14:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "YulFunctionCall",
|
|
|
|
"src": "124:14:1"
|
|
|
|
},
|
|
|
|
"variables":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "y",
|
2023-05-02 13:34:12 +00:00
|
|
|
"nativeSrc": "119:1:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "YulTypedName",
|
|
|
|
"src": "119:1:1",
|
|
|
|
"type": ""
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-01-14 11:46:47 +00:00
|
|
|
"evmVersion": %EVMVERSION%,
|
2019-10-15 10:38:12 +00:00
|
|
|
"externalReferences":
|
|
|
|
[
|
|
|
|
{
|
2020-08-31 15:37:03 +00:00
|
|
|
"declaration": 6,
|
2019-10-15 10:38:12 +00:00
|
|
|
"isOffset": true,
|
|
|
|
"isSlot": false,
|
|
|
|
"src": "106:8:1",
|
2020-11-05 13:39:39 +00:00
|
|
|
"suffix": "offset",
|
2019-10-15 10:38:12 +00:00
|
|
|
"valueSize": 1
|
|
|
|
},
|
|
|
|
{
|
2020-08-31 15:37:03 +00:00
|
|
|
"declaration": 6,
|
2019-10-15 10:38:12 +00:00
|
|
|
"isOffset": false,
|
|
|
|
"isSlot": true,
|
|
|
|
"src": "128:6:1",
|
2020-11-05 13:39:39 +00:00
|
|
|
"suffix": "slot",
|
2019-10-15 10:38:12 +00:00
|
|
|
"valueSize": 1
|
|
|
|
}
|
|
|
|
],
|
2020-08-31 15:37:03 +00:00
|
|
|
"id": 9,
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "InlineAssembly",
|
|
|
|
"src": "86:54:1"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-12-09 00:26:48 +00:00
|
|
|
"functionSelector": "ffae15ba",
|
2020-08-31 15:37:03 +00:00
|
|
|
"id": 11,
|
2019-10-15 10:38:12 +00:00
|
|
|
"implemented": true,
|
|
|
|
"kind": "function",
|
|
|
|
"modifiers": [],
|
|
|
|
"name": "e",
|
2021-02-10 17:40:05 +00:00
|
|
|
"nameLocation": "60:1:1",
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "FunctionDefinition",
|
|
|
|
"parameters":
|
|
|
|
{
|
2020-08-31 15:37:03 +00:00
|
|
|
"id": 7,
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
|
|
|
"src": "61:2:1"
|
|
|
|
},
|
|
|
|
"returnParameters":
|
|
|
|
{
|
2020-08-31 15:37:03 +00:00
|
|
|
"id": 8,
|
2019-10-15 10:38:12 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
|
|
|
"src": "76:0:1"
|
|
|
|
},
|
2020-08-31 15:37:03 +00:00
|
|
|
"scope": 12,
|
2019-10-15 10:38:12 +00:00
|
|
|
"src": "51:95:1",
|
|
|
|
"stateMutability": "pure",
|
2019-11-21 14:47:10 +00:00
|
|
|
"virtual": false,
|
2019-10-15 10:38:12 +00:00
|
|
|
"visibility": "public"
|
|
|
|
}
|
|
|
|
],
|
2020-08-31 15:37:03 +00:00
|
|
|
"scope": 13,
|
2021-04-15 07:59:59 +00:00
|
|
|
"src": "0:148:1",
|
2021-02-23 13:13:52 +00:00
|
|
|
"usedErrors": [],
|
|
|
|
"usedEvents": []
|
2019-10-15 10:38:12 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"src": "0:149:1"
|
|
|
|
}
|