2021-02-09 14:12:59 +00:00
|
|
|
{
|
|
|
|
"absolutePath": "a",
|
|
|
|
"id": 29,
|
|
|
|
"nodeType": "SourceUnit",
|
|
|
|
"nodes":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"abstract": false,
|
|
|
|
"baseContracts": [],
|
|
|
|
"contractDependencies": [],
|
|
|
|
"contractKind": "contract",
|
|
|
|
"id": 28,
|
|
|
|
"name": "C",
|
2021-02-10 17:40:05 +00:00
|
|
|
"nameLocation": "9:1:1",
|
2021-02-09 14:12:59 +00:00
|
|
|
"nodeType": "ContractDefinition",
|
|
|
|
"nodes":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"constant": false,
|
|
|
|
"id": 3,
|
|
|
|
"mutability": "mutable",
|
|
|
|
"name": "a",
|
2021-02-10 17:40:05 +00:00
|
|
|
"nameLocation": "35:1:1",
|
2021-02-09 14:12:59 +00:00
|
|
|
"nodeType": "VariableDeclaration",
|
|
|
|
"src": "30:6:1",
|
|
|
|
"stateVariable": false,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {},
|
|
|
|
"typeName":
|
|
|
|
{
|
|
|
|
"id": 2,
|
|
|
|
"name": "uint",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
|
|
|
"src": "30:4:1",
|
|
|
|
"typeDescriptions": {}
|
|
|
|
},
|
|
|
|
"visibility": "internal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"body":
|
|
|
|
{
|
|
|
|
"id": 26,
|
|
|
|
"nodeType": "Block",
|
|
|
|
"src": "84:181:1",
|
|
|
|
"statements":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"body":
|
|
|
|
{
|
|
|
|
"id": 22,
|
|
|
|
"nodeType": "Block",
|
|
|
|
"src": "142:75:1",
|
|
|
|
"statements":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"documentation": "tee\n s \"t\" 3",
|
|
|
|
"expression":
|
|
|
|
{
|
|
|
|
"id": 20,
|
|
|
|
"leftHandSide":
|
|
|
|
{
|
|
|
|
"id": 18,
|
|
|
|
"name": "x",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
|
|
|
"src": "200:1:1",
|
|
|
|
"typeDescriptions": {}
|
|
|
|
},
|
|
|
|
"nodeType": "Assignment",
|
|
|
|
"operator": "*=",
|
|
|
|
"rightHandSide":
|
|
|
|
{
|
|
|
|
"hexValue": "32",
|
|
|
|
"id": 19,
|
|
|
|
"kind": "number",
|
|
|
|
"nodeType": "Literal",
|
|
|
|
"src": "205:1:1",
|
|
|
|
"typeDescriptions": {},
|
|
|
|
"value": "2"
|
|
|
|
},
|
|
|
|
"src": "200:6:1",
|
|
|
|
"typeDescriptions": {}
|
|
|
|
},
|
|
|
|
"id": 21,
|
|
|
|
"nodeType": "ExpressionStatement",
|
|
|
|
"src": "200:6:1"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"condition":
|
|
|
|
{
|
|
|
|
"commonType": {},
|
|
|
|
"id": 14,
|
|
|
|
"leftExpression":
|
|
|
|
{
|
|
|
|
"id": 12,
|
|
|
|
"name": "i",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
|
|
|
"src": "129:1:1",
|
|
|
|
"typeDescriptions": {}
|
|
|
|
},
|
|
|
|
"nodeType": "BinaryOperation",
|
|
|
|
"operator": "<",
|
|
|
|
"rightExpression":
|
|
|
|
{
|
|
|
|
"hexValue": "3230",
|
|
|
|
"id": 13,
|
|
|
|
"kind": "number",
|
|
|
|
"nodeType": "Literal",
|
|
|
|
"src": "133:2:1",
|
|
|
|
"typeDescriptions": {},
|
|
|
|
"value": "20"
|
|
|
|
},
|
|
|
|
"src": "129:6:1",
|
|
|
|
"typeDescriptions": {}
|
|
|
|
},
|
|
|
|
"documentation": "test2",
|
|
|
|
"id": 23,
|
|
|
|
"initializationExpression":
|
|
|
|
{
|
|
|
|
"assignments":
|
|
|
|
[
|
|
|
|
9
|
|
|
|
],
|
|
|
|
"declarations":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"constant": false,
|
|
|
|
"id": 9,
|
|
|
|
"mutability": "mutable",
|
|
|
|
"name": "i",
|
2021-02-10 17:40:05 +00:00
|
|
|
"nameLocation": "122:1:1",
|
2021-02-09 14:12:59 +00:00
|
|
|
"nodeType": "VariableDeclaration",
|
|
|
|
"src": "117:6:1",
|
|
|
|
"stateVariable": false,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {},
|
|
|
|
"typeName":
|
|
|
|
{
|
|
|
|
"id": 8,
|
|
|
|
"name": "uint",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
|
|
|
"src": "117:4:1",
|
|
|
|
"typeDescriptions": {}
|
|
|
|
},
|
|
|
|
"visibility": "internal"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"id": 11,
|
|
|
|
"initialValue":
|
|
|
|
{
|
|
|
|
"hexValue": "30",
|
|
|
|
"id": 10,
|
|
|
|
"kind": "number",
|
|
|
|
"nodeType": "Literal",
|
|
|
|
"src": "126:1:1",
|
|
|
|
"typeDescriptions": {},
|
|
|
|
"value": "0"
|
|
|
|
},
|
|
|
|
"nodeType": "VariableDeclarationStatement",
|
|
|
|
"src": "117:10:1"
|
|
|
|
},
|
|
|
|
"loopExpression":
|
|
|
|
{
|
|
|
|
"expression":
|
|
|
|
{
|
|
|
|
"id": 16,
|
|
|
|
"nodeType": "UnaryOperation",
|
|
|
|
"operator": "++",
|
|
|
|
"prefix": false,
|
|
|
|
"src": "137:3:1",
|
|
|
|
"subExpression":
|
|
|
|
{
|
|
|
|
"id": 15,
|
|
|
|
"name": "i",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
|
|
|
"src": "137:1:1",
|
|
|
|
"typeDescriptions": {}
|
|
|
|
},
|
|
|
|
"typeDescriptions": {}
|
|
|
|
},
|
|
|
|
"id": 17,
|
|
|
|
"nodeType": "ExpressionStatement",
|
|
|
|
"src": "137:3:1"
|
|
|
|
},
|
|
|
|
"nodeType": "ForStatement",
|
|
|
|
"src": "112:105:1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"documentation": "tes \"t4\" ",
|
|
|
|
"expression":
|
|
|
|
{
|
|
|
|
"id": 24,
|
|
|
|
"name": "x",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
|
|
|
"src": "257:1:1",
|
|
|
|
"typeDescriptions": {}
|
|
|
|
},
|
|
|
|
"id": 25,
|
|
|
|
"nodeType": "Return",
|
|
|
|
"src": "250:8:1"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"id": 27,
|
|
|
|
"implemented": true,
|
|
|
|
"kind": "function",
|
|
|
|
"modifiers": [],
|
|
|
|
"name": "f",
|
2021-02-10 17:40:05 +00:00
|
|
|
"nameLocation": "51:1:1",
|
2021-02-09 14:12:59 +00:00
|
|
|
"nodeType": "FunctionDefinition",
|
|
|
|
"parameters":
|
|
|
|
{
|
|
|
|
"id": 4,
|
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
|
|
|
"src": "52:2:1"
|
|
|
|
},
|
|
|
|
"returnParameters":
|
|
|
|
{
|
|
|
|
"id": 7,
|
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"constant": false,
|
|
|
|
"id": 6,
|
|
|
|
"mutability": "mutable",
|
|
|
|
"name": "x",
|
2021-02-10 17:40:05 +00:00
|
|
|
"nameLocation": "81:1:1",
|
2021-02-09 14:12:59 +00:00
|
|
|
"nodeType": "VariableDeclaration",
|
|
|
|
"src": "76:6:1",
|
|
|
|
"stateVariable": false,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {},
|
|
|
|
"typeName":
|
|
|
|
{
|
|
|
|
"id": 5,
|
|
|
|
"name": "uint",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
|
|
|
"src": "76:4:1",
|
|
|
|
"typeDescriptions": {}
|
|
|
|
},
|
|
|
|
"visibility": "internal"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"src": "75:8:1"
|
|
|
|
},
|
|
|
|
"src": "42:223:1",
|
|
|
|
"stateMutability": "pure",
|
|
|
|
"virtual": false,
|
|
|
|
"visibility": "public"
|
|
|
|
}
|
|
|
|
],
|
2021-04-15 07:59:59 +00:00
|
|
|
"src": "0:267:1",
|
|
|
|
"usedErrors": []
|
2021-02-09 14:12:59 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"src": "0:268:1"
|
|
|
|
}
|