UNPKG

solidity-cron

Version:

[![Build Status](https://travis-ci.com/Frontier-project/cron.svg?token=DJeMzxJJncp3nRaEUuxH&branch=master)](https://travis-ci.com/Frontier-project/cron) [![codecov](https://codecov.io/gh/Frontier-project/cron/branch/master/graph/badge.svg?token=BGbU5Q6IRV

1,247 lines (1,246 loc) 127 kB
{ "contractName": "SafeMath", "abi": [], "bytecode": "0x604c602c600b82828239805160001a60731460008114601c57601e565bfe5b5030600052607381538281f30073000000000000000000000000000000000000000030146080604052600080fd00a165627a7a72305820b1bb993de962adc6f260c76caa215c5c2682180b1afbe01a04e87c282a79ce1a0029", "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fd00a165627a7a72305820b1bb993de962adc6f260c76caa215c5c2682180b1afbe01a04e87c282a79ce1a0029", "sourceMap": "117:1531:8:-;;132:2:-1;166:7;155:9;146:7;137:37;252:7;246:14;243:1;238:23;232:4;229:33;270:1;265:20;;;;222:63;;265:20;274:9;222:63;;298:9;295:1;288:20;328:4;319:7;311:22;352:7;343;336:24", "deployedSourceMap": "117:1531:8:-;;;;;;;;", "source": "pragma solidity ^0.4.24;\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that revert on error\n */\nlibrary SafeMath {\n\n /**\n * @dev Multiplies two numbers, reverts on overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n // benefit is lost if 'b' is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\n if (a == 0) {\n return 0;\n }\n\n uint256 c = a * b;\n require(c / a == b);\n\n return c;\n }\n\n /**\n * @dev Integer division of two numbers truncating the quotient, reverts on division by zero.\n */\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b > 0); // Solidity only automatically asserts when dividing by 0\n uint256 c = a / b;\n // assert(a == b * c + a % b); // There is no case in which this doesn't hold\n\n return c;\n }\n\n /**\n * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b <= a);\n uint256 c = a - b;\n\n return c;\n }\n\n /**\n * @dev Adds two numbers, reverts on overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n require(c >= a);\n\n return c;\n }\n\n /**\n * @dev Divides two numbers and returns the remainder (unsigned integer modulo),\n * reverts when dividing by zero.\n */\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b != 0);\n return a % b;\n }\n}\n", "sourcePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "ast": { "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "exportedSymbols": { "SafeMath": [ 1285 ] }, "id": 1286, "nodeType": "SourceUnit", "nodes": [ { "id": 1159, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:8" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "library", "documentation": "@title SafeMath\n@dev Math operations with safety checks that revert on error", "fullyImplemented": true, "id": 1285, "linearizedBaseContracts": [ 1285 ], "name": "SafeMath", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 1191, "nodeType": "Block", "src": "271:314:8", "statements": [ { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1170, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 1168, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1161, "src": "486:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 1169, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "491:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "486:6:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 1174, "nodeType": "IfStatement", "src": "482:35:8", "trueBody": { "id": 1173, "nodeType": "Block", "src": "494:23:8", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "30", "id": 1171, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "509:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "functionReturnParameters": 1167, "id": 1172, "nodeType": "Return", "src": "502:8:8" } ] } }, { "assignments": [ 1176 ], "declarations": [ { "constant": false, "id": 1176, "name": "c", "nodeType": "VariableDeclaration", "scope": 1192, "src": "523:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1175, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "523:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 1180, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1179, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 1177, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1161, "src": "535:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "argumentTypes": null, "id": 1178, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1163, "src": "539:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "535:5:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "523:17:8" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1186, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1184, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 1182, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1176, "src": "554:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "/", "rightExpression": { "argumentTypes": null, "id": 1183, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1161, "src": "558:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "554:5:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 1185, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1163, "src": "563:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "554:10:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 1181, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 1816, 1817 ], "referencedDeclaration": 1816, "src": "546:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 1187, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "546:19:8", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1188, "nodeType": "ExpressionStatement", "src": "546:19:8" }, { "expression": { "argumentTypes": null, "id": 1189, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1176, "src": "579:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 1167, "id": 1190, "nodeType": "Return", "src": "572:8:8" } ] }, "documentation": "@dev Multiplies two numbers, reverts on overflow.", "id": 1192, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "mul", "nodeType": "FunctionDefinition", "parameters": { "id": 1164, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1161, "name": "a", "nodeType": "VariableDeclaration", "scope": 1192, "src": "217:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1160, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "217:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1163, "name": "b", "nodeType": "VariableDeclaration", "scope": 1192, "src": "228:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1162, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "228:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "216:22:8" }, "payable": false, "returnParameters": { "id": 1167, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1166, "name": "", "nodeType": "VariableDeclaration", "scope": 1192, "src": "262:7:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1165, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "262:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "261:9:8" }, "scope": 1285, "src": "204:381:8", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { "id": 1215, "nodeType": "Block", "src": "762:203:8", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1204, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 1202, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1196, "src": "776:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 1203, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "780:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "776:5:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 1201, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 1816, 1817 ], "referencedDeclaration": 1816, "src": "768:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 1205, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "768:14:8", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1206, "nodeType": "ExpressionStatement", "src": "768:14:8" }, { "assignments": [ 1208 ], "declarations": [ { "constant": false, "id": 1208, "name": "c", "nodeType": "VariableDeclaration", "scope": 1216, "src": "846:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1207, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "846:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 1212, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1211, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 1209, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1194, "src": "858:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "/", "rightExpression": { "argumentTypes": null, "id": 1210, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1196, "src": "862:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "858:5:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "846:17:8" }, { "expression": { "argumentTypes": null, "id": 1213, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1208, "src": "959:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 1200, "id": 1214, "nodeType": "Return", "src": "952:8:8" } ] }, "documentation": "@dev Integer division of two numbers truncating the quotient, reverts on division by zero.", "id": 1216, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "div", "nodeType": "FunctionDefinition", "parameters": { "id": 1197, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1194, "name": "a", "nodeType": "VariableDeclaration", "scope": 1216, "src": "708:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1193, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "708:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1196, "name": "b", "nodeType": "VariableDeclaration", "scope": 1216, "src": "719:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1195, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "719:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "707:22:8" }, "payable": false, "returnParameters": { "id": 1200, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1199, "name": "", "nodeType": "VariableDeclaration", "scope": 1216, "src": "753:7:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1198, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "753:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "752:9:8" }, "scope": 1285, "src": "695:270:8", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { "id": 1239, "nodeType": "Block", "src": "1145:64:8", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1228, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 1226, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1220, "src": "1159:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "argumentTypes": null, "id": 1227, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1218, "src": "1164:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "1159:6:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 1225, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 1816, 1817 ], "referencedDeclaration": 1816, "src": "1151:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 1229, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1151:15:8", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1230, "nodeType": "ExpressionStatement", "src": "1151:15:8" }, { "assignments": [ 1232 ], "declarations": [ { "constant": false, "id": 1232, "name": "c", "nodeType": "VariableDeclaration", "scope": 1240, "src": "1172:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1231, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1172:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 1236, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1235, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 1233, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1218, "src": "1184:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "-", "rightExpression": { "argumentTypes": null, "id": 1234, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1220, "src": "1188:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "1184:5:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "1172:17:8" }, { "expression": { "argumentTypes": null, "id": 1237, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1232, "src": "1203:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 1224, "id": 1238, "nodeType": "Return", "src": "1196:8:8" } ] }, "documentation": "@dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).", "id": 1240, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "sub", "nodeType": "FunctionDefinition", "parameters": { "id": 1221, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1218, "name": "a", "nodeType": "VariableDeclaration", "scope": 1240, "src": "1091:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1217, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1091:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1220, "name": "b", "nodeType": "VariableDeclaration", "scope": 1240, "src": "1102:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1219, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1102:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "1090:22:8" }, "payable": false, "returnParameters": { "id": 1224, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1223, "name": "", "nodeType": "VariableDeclaration", "scope": 1240, "src": "1136:7:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1222, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1136:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "1135:9:8" }, "scope": 1285, "src": "1078:131:8", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { "id": 1263, "nodeType": "Block", "src": "1339:64:8", "statements": [ { "assignments": [ 1250 ], "declarations": [ { "constant": false, "id": 1250, "name": "c", "nodeType": "VariableDeclaration", "scope": 1264, "src": "1345:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1249, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1345:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 1254, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1253, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 1251, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1242, "src": "1357:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "argumentTypes": null, "id": 1252, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1244, "src": "1361:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "1357:5:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "1345:17:8" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1258, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 1256, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1250, "src": "1376:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "argumentTypes": null, "id": 1257, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1242, "src": "1381:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "1376:6:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 1255, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 1816, 1817 ], "referencedDeclaration": 1816, "src": "1368:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 1259, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1368:15:8",