2018-08-03 17:41:35 +00:00
|
|
|
{
|
2019-10-02 15:55:24 +00:00
|
|
|
"absolutePath": "a",
|
|
|
|
"exportedSymbols":
|
|
|
|
{
|
|
|
|
"C":
|
|
|
|
[
|
2020-07-15 17:50:59 +00:00
|
|
|
12
|
2019-10-02 15:55:24 +00:00
|
|
|
]
|
|
|
|
},
|
2020-07-15 17:50:59 +00:00
|
|
|
"id": 13,
|
2019-10-02 15:55:24 +00:00
|
|
|
"nodeType": "SourceUnit",
|
|
|
|
"nodes":
|
|
|
|
[
|
|
|
|
{
|
2019-10-23 20:10:12 +00:00
|
|
|
"abstract": false,
|
2019-10-02 15:55:24 +00:00
|
|
|
"baseContracts": [],
|
2021-09-28 09:05:52 +00:00
|
|
|
"canonicalName": "C",
|
2019-10-02 15:55:24 +00:00
|
|
|
"contractDependencies": [],
|
|
|
|
"contractKind": "contract",
|
|
|
|
"fullyImplemented": true,
|
2020-07-15 17:50:59 +00:00
|
|
|
"id": 12,
|
2019-10-02 15:55:24 +00:00
|
|
|
"linearizedBaseContracts":
|
|
|
|
[
|
2020-07-15 17:50:59 +00:00
|
|
|
12
|
2019-10-02 15:55:24 +00:00
|
|
|
],
|
|
|
|
"name": "C",
|
2021-02-10 17:40:05 +00:00
|
|
|
"nameLocation": "9:1:1",
|
2019-10-02 15:55:24 +00:00
|
|
|
"nodeType": "ContractDefinition",
|
|
|
|
"nodes":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"body":
|
|
|
|
{
|
2020-07-15 17:50:59 +00:00
|
|
|
"id": 10,
|
2019-10-02 15:55:24 +00:00
|
|
|
"nodeType": "Block",
|
2022-02-17 12:38:29 +00:00
|
|
|
"src": "33:20:1",
|
2019-10-02 15:55:24 +00:00
|
|
|
"statements":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"assignments":
|
|
|
|
[
|
2020-07-15 17:50:59 +00:00
|
|
|
4
|
2019-10-02 15:55:24 +00:00
|
|
|
],
|
|
|
|
"declarations":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"constant": false,
|
2020-07-15 17:50:59 +00:00
|
|
|
"id": 4,
|
2020-04-07 09:10:10 +00:00
|
|
|
"mutability": "mutable",
|
2019-10-02 15:55:24 +00:00
|
|
|
"name": "x",
|
2022-02-17 12:38:29 +00:00
|
|
|
"nameLocation": "40:1:1",
|
2019-10-02 15:55:24 +00:00
|
|
|
"nodeType": "VariableDeclaration",
|
2020-07-15 17:50:59 +00:00
|
|
|
"scope": 10,
|
2022-02-17 12:38:29 +00:00
|
|
|
"src": "35:6:1",
|
2019-10-02 15:55:24 +00:00
|
|
|
"stateVariable": false,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions":
|
|
|
|
{
|
2020-07-15 17:50:59 +00:00
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
},
|
|
|
|
"typeName":
|
|
|
|
{
|
|
|
|
"id": 3,
|
|
|
|
"name": "uint",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
2022-02-17 12:38:29 +00:00
|
|
|
"src": "35:4:1",
|
2020-07-15 17:50:59 +00:00
|
|
|
"typeDescriptions":
|
|
|
|
{
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
2019-10-02 15:55:24 +00:00
|
|
|
},
|
|
|
|
"visibility": "internal"
|
|
|
|
}
|
|
|
|
],
|
2020-07-15 17:50:59 +00:00
|
|
|
"id": 6,
|
2019-10-02 15:55:24 +00:00
|
|
|
"initialValue":
|
|
|
|
{
|
|
|
|
"hexValue": "32",
|
2020-07-15 17:50:59 +00:00
|
|
|
"id": 5,
|
2019-10-02 15:55:24 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": true,
|
|
|
|
"kind": "number",
|
|
|
|
"lValueRequested": false,
|
|
|
|
"nodeType": "Literal",
|
2022-02-17 12:38:29 +00:00
|
|
|
"src": "44:1:1",
|
2019-10-02 15:55:24 +00:00
|
|
|
"typeDescriptions":
|
|
|
|
{
|
|
|
|
"typeIdentifier": "t_rational_2_by_1",
|
|
|
|
"typeString": "int_const 2"
|
|
|
|
},
|
|
|
|
"value": "2"
|
|
|
|
},
|
|
|
|
"nodeType": "VariableDeclarationStatement",
|
2022-02-17 12:38:29 +00:00
|
|
|
"src": "35:10:1"
|
2019-10-02 15:55:24 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"expression":
|
|
|
|
{
|
2020-07-15 17:50:59 +00:00
|
|
|
"id": 8,
|
2019-10-02 15:55:24 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"nodeType": "UnaryOperation",
|
|
|
|
"operator": "++",
|
|
|
|
"prefix": false,
|
2022-02-17 12:38:29 +00:00
|
|
|
"src": "47:3:1",
|
2019-10-02 15:55:24 +00:00
|
|
|
"subExpression":
|
|
|
|
{
|
2020-07-15 17:50:59 +00:00
|
|
|
"id": 7,
|
2019-10-02 15:55:24 +00:00
|
|
|
"name": "x",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2020-07-15 17:50:59 +00:00
|
|
|
"referencedDeclaration": 4,
|
2022-02-17 12:38:29 +00:00
|
|
|
"src": "47:1:1",
|
2019-10-02 15:55:24 +00:00
|
|
|
"typeDescriptions":
|
|
|
|
{
|
2020-07-15 17:50:59 +00:00
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
2019-10-02 15:55:24 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"typeDescriptions":
|
|
|
|
{
|
2020-07-15 17:50:59 +00:00
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
2019-10-02 15:55:24 +00:00
|
|
|
}
|
|
|
|
},
|
2020-07-15 17:50:59 +00:00
|
|
|
"id": 9,
|
2019-10-02 15:55:24 +00:00
|
|
|
"nodeType": "ExpressionStatement",
|
2022-02-17 12:38:29 +00:00
|
|
|
"src": "47:3:1"
|
2019-10-02 15:55:24 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-12-09 00:26:48 +00:00
|
|
|
"functionSelector": "26121ff0",
|
2020-07-15 17:50:59 +00:00
|
|
|
"id": 11,
|
2019-10-02 15:55:24 +00:00
|
|
|
"implemented": true,
|
|
|
|
"kind": "function",
|
|
|
|
"modifiers": [],
|
|
|
|
"name": "f",
|
2021-02-10 17:40:05 +00:00
|
|
|
"nameLocation": "22:1:1",
|
2019-10-02 15:55:24 +00:00
|
|
|
"nodeType": "FunctionDefinition",
|
|
|
|
"parameters":
|
|
|
|
{
|
|
|
|
"id": 1,
|
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
|
|
|
"src": "23:2:1"
|
|
|
|
},
|
|
|
|
"returnParameters":
|
|
|
|
{
|
|
|
|
"id": 2,
|
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
2022-02-17 12:38:29 +00:00
|
|
|
"src": "33:0:1"
|
2019-10-02 15:55:24 +00:00
|
|
|
},
|
2020-07-15 17:50:59 +00:00
|
|
|
"scope": 12,
|
2022-02-17 12:38:29 +00:00
|
|
|
"src": "13:40:1",
|
2019-10-02 15:55:24 +00:00
|
|
|
"stateMutability": "nonpayable",
|
2019-11-21 14:47:10 +00:00
|
|
|
"virtual": false,
|
2019-10-02 15:55:24 +00:00
|
|
|
"visibility": "public"
|
|
|
|
}
|
|
|
|
],
|
2020-07-15 17:50:59 +00:00
|
|
|
"scope": 13,
|
2022-02-17 12:38:29 +00:00
|
|
|
"src": "0:55:1",
|
2021-02-23 13:13:52 +00:00
|
|
|
"usedErrors": [],
|
|
|
|
"usedEvents": []
|
2019-10-02 15:55:24 +00:00
|
|
|
}
|
|
|
|
],
|
2022-02-17 12:38:29 +00:00
|
|
|
"src": "0:56:1"
|
2018-08-03 17:41:35 +00:00
|
|
|
}
|