{
  "abi": [],
  "bytecode": {
    "object": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203910cb45576db20dde8c2245ec4d300aab0bb7270696c696203f3d113a21604b64736f6c63430008060033",
    "sourceMap": "927:34153:167:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;927:34153:167;;;;;;;;;;;;;;;;;",
    "linkReferences": {}
  },
  "deployedBytecode": {
    "object": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203910cb45576db20dde8c2245ec4d300aab0bb7270696c696203f3d113a21604b64736f6c63430008060033",
    "sourceMap": "927:34153:167:-:0;;;;;;;;",
    "linkReferences": {}
  },
  "methodIdentifiers": {},
  "rawMetadata": "{\"compiler\":{\"version\":\"0.8.6+commit.11564f7e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Wrappers over Solidity's uintXX/intXX casting operators with added overflow checks. Downcasting from uint256/int256 in Solidity does not revert on overflow. This can easily result in undesired exploitation or bugs, since developers usually assume that overflows raise errors. `SafeCast` restores this intuition by reverting the transaction when such an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always. Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing all math on `uint256` and `int256` and then downcasting.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol\":\"SafeCast\"},\"evmVersion\":\"berlin\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":10000000},\"remappings\":[\":@chainlink/=lib/juice-contracts-v2/lib/chainlink/\",\":@jbx-protocol-v1/=lib/juice-contracts-v1/\",\":@jbx-protocol-v2/=lib/juice-contracts-v2/\",\":@jbx-protocol-v3/=lib/juice-contracts-v3/\",\":@juicebox/=lib/juice-contracts-v2/contracts/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":@paulrberg/contracts/math/=lib/juice-contracts-v2/lib/prb-math/contracts/\",\":chainlink/=lib/juice-contracts-v2/lib/chainlink/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":juice-contracts-v1/=lib/juice-contracts-v1/contracts/\",\":juice-contracts-v2/=lib/juice-contracts-v2/contracts/\",\":juice-contracts-v3/=lib/juice-contracts-v3/contracts/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/\",\":openzeppelin-contracts/contracts/=lib/juice-contracts-v2/lib/openzeppelin-contracts/contracts/\",\":prb-math/=lib/juice-contracts-v2/lib/prb-math/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol\":{\"keccak256\":\"0x52a8cfb0f5239d11b457dcdd1b326992ef672714ca8da71a157255bddd13f3ad\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://495145362c7ff1c9ca88c58bbbbcb412e3c2004406647412394486552ff6c278\",\"dweb:/ipfs/QmNNCeng6d5eRPDn6tkWSQhjE39XWfQEfjA63rRwHmr1iH\"]}},\"version\":1}",
  "metadata": {
    "compiler": {
      "version": "0.8.6+commit.11564f7e"
    },
    "language": "Solidity",
    "output": {
      "abi": [],
      "devdoc": {
        "kind": "dev",
        "methods": {},
        "version": 1
      },
      "userdoc": {
        "kind": "user",
        "methods": {},
        "version": 1
      }
    },
    "settings": {
      "remappings": [
        ":@chainlink/=lib/juice-contracts-v2/lib/chainlink/",
        ":@jbx-protocol-v1/=lib/juice-contracts-v1/",
        ":@jbx-protocol-v2/=lib/juice-contracts-v2/",
        ":@jbx-protocol-v3/=lib/juice-contracts-v3/",
        ":@juicebox/=lib/juice-contracts-v2/contracts/",
        ":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
        ":@paulrberg/contracts/math/=lib/juice-contracts-v2/lib/prb-math/contracts/",
        ":chainlink/=lib/juice-contracts-v2/lib/chainlink/",
        ":ds-test/=lib/forge-std/lib/ds-test/src/",
        ":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
        ":forge-std/=lib/forge-std/src/",
        ":juice-contracts-v1/=lib/juice-contracts-v1/contracts/",
        ":juice-contracts-v2/=lib/juice-contracts-v2/contracts/",
        ":juice-contracts-v3/=lib/juice-contracts-v3/contracts/",
        ":openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/",
        ":openzeppelin-contracts/contracts/=lib/juice-contracts-v2/lib/openzeppelin-contracts/contracts/",
        ":prb-math/=lib/juice-contracts-v2/lib/prb-math/"
      ],
      "optimizer": {
        "enabled": true,
        "runs": 10000000
      },
      "metadata": {
        "bytecodeHash": "ipfs"
      },
      "compilationTarget": {
        "lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol": "SafeCast"
      },
      "libraries": {}
    },
    "sources": {
      "lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol": {
        "keccak256": "0x52a8cfb0f5239d11b457dcdd1b326992ef672714ca8da71a157255bddd13f3ad",
        "urls": [
          "bzz-raw://495145362c7ff1c9ca88c58bbbbcb412e3c2004406647412394486552ff6c278",
          "dweb:/ipfs/QmNNCeng6d5eRPDn6tkWSQhjE39XWfQEfjA63rRwHmr1iH"
        ],
        "license": "MIT"
      }
    },
    "version": 1
  },
  "ast": {
    "absolutePath": "lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol",
    "id": 31785,
    "exportedSymbols": {
      "SafeCast": [
        31784
      ]
    },
    "nodeType": "SourceUnit",
    "src": "192:34889:167",
    "nodes": [
      {
        "id": 30245,
        "nodeType": "PragmaDirective",
        "src": "192:23:167",
        "nodes": [],
        "literals": [
          "solidity",
          "^",
          "0.8",
          ".0"
        ]
      },
      {
        "id": 31784,
        "nodeType": "ContractDefinition",
        "src": "927:34153:167",
        "nodes": [
          {
            "id": 30271,
            "nodeType": "FunctionDefinition",
            "src": "1273:192:167",
            "nodes": [],
            "body": {
              "id": 30270,
              "nodeType": "Block",
              "src": "1339:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30261,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30255,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30249,
                          "src": "1357:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30258,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "1371:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint248_$",
                                  "typeString": "type(uint248)"
                                },
                                "typeName": {
                                  "id": 30257,
                                  "name": "uint248",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "1371:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint248_$",
                                  "typeString": "type(uint248)"
                                }
                              ],
                              "id": 30256,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "1366:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30259,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1366:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint248",
                              "typeString": "type(uint248)"
                            }
                          },
                          "id": 30260,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "1366:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint248",
                            "typeString": "uint248"
                          }
                        },
                        "src": "1357:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203234382062697473",
                        "id": 30262,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1385:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_6ac19bba4607c9b45ff35f54fbc4ca64c29c7457109a16fa180ea77cdbda8593",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 248 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 248 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_6ac19bba4607c9b45ff35f54fbc4ca64c29c7457109a16fa180ea77cdbda8593",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 248 bits\""
                        }
                      ],
                      "id": 30254,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "1349:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30263,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1349:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30264,
                  "nodeType": "ExpressionStatement",
                  "src": "1349:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30267,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30249,
                        "src": "1452:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30266,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "1444:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint248_$",
                        "typeString": "type(uint248)"
                      },
                      "typeName": {
                        "id": 30265,
                        "name": "uint248",
                        "nodeType": "ElementaryTypeName",
                        "src": "1444:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30268,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1444:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint248",
                      "typeString": "uint248"
                    }
                  },
                  "functionReturnParameters": 30253,
                  "id": 30269,
                  "nodeType": "Return",
                  "src": "1437:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30247,
              "nodeType": "StructuredDocumentation",
              "src": "950:318:167",
              "text": " @dev Returns the downcasted uint248 from uint256, reverting on\n overflow (when the input is greater than largest uint248).\n Counterpart to Solidity's `uint248` operator.\n Requirements:\n - input must fit into 248 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint248",
            "nameLocation": "1282:9:167",
            "parameters": {
              "id": 30250,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30249,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "1300:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30271,
                  "src": "1292:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30248,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1292:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1291:15:167"
            },
            "returnParameters": {
              "id": 30253,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30252,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30271,
                  "src": "1330:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint248",
                    "typeString": "uint248"
                  },
                  "typeName": {
                    "id": 30251,
                    "name": "uint248",
                    "nodeType": "ElementaryTypeName",
                    "src": "1330:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint248",
                      "typeString": "uint248"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1329:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30296,
            "nodeType": "FunctionDefinition",
            "src": "1794:192:167",
            "nodes": [],
            "body": {
              "id": 30295,
              "nodeType": "Block",
              "src": "1860:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30286,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30280,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30274,
                          "src": "1878:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30283,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "1892:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint240_$",
                                  "typeString": "type(uint240)"
                                },
                                "typeName": {
                                  "id": 30282,
                                  "name": "uint240",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "1892:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint240_$",
                                  "typeString": "type(uint240)"
                                }
                              ],
                              "id": 30281,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "1887:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30284,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1887:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint240",
                              "typeString": "type(uint240)"
                            }
                          },
                          "id": 30285,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "1887:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint240",
                            "typeString": "uint240"
                          }
                        },
                        "src": "1878:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203234302062697473",
                        "id": 30287,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1906:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_375fa0f6cb9fb5845d214c630920cedf4424913ed6dc32c297d430efa3d61a87",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 240 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 240 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_375fa0f6cb9fb5845d214c630920cedf4424913ed6dc32c297d430efa3d61a87",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 240 bits\""
                        }
                      ],
                      "id": 30279,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "1870:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30288,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1870:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30289,
                  "nodeType": "ExpressionStatement",
                  "src": "1870:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30292,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30274,
                        "src": "1973:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30291,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "1965:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint240_$",
                        "typeString": "type(uint240)"
                      },
                      "typeName": {
                        "id": 30290,
                        "name": "uint240",
                        "nodeType": "ElementaryTypeName",
                        "src": "1965:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30293,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1965:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint240",
                      "typeString": "uint240"
                    }
                  },
                  "functionReturnParameters": 30278,
                  "id": 30294,
                  "nodeType": "Return",
                  "src": "1958:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30272,
              "nodeType": "StructuredDocumentation",
              "src": "1471:318:167",
              "text": " @dev Returns the downcasted uint240 from uint256, reverting on\n overflow (when the input is greater than largest uint240).\n Counterpart to Solidity's `uint240` operator.\n Requirements:\n - input must fit into 240 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint240",
            "nameLocation": "1803:9:167",
            "parameters": {
              "id": 30275,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30274,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "1821:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30296,
                  "src": "1813:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30273,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1813:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1812:15:167"
            },
            "returnParameters": {
              "id": 30278,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30277,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30296,
                  "src": "1851:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint240",
                    "typeString": "uint240"
                  },
                  "typeName": {
                    "id": 30276,
                    "name": "uint240",
                    "nodeType": "ElementaryTypeName",
                    "src": "1851:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint240",
                      "typeString": "uint240"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1850:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30321,
            "nodeType": "FunctionDefinition",
            "src": "2315:192:167",
            "nodes": [],
            "body": {
              "id": 30320,
              "nodeType": "Block",
              "src": "2381:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30311,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30305,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30299,
                          "src": "2399:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30308,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "2413:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint232_$",
                                  "typeString": "type(uint232)"
                                },
                                "typeName": {
                                  "id": 30307,
                                  "name": "uint232",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "2413:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint232_$",
                                  "typeString": "type(uint232)"
                                }
                              ],
                              "id": 30306,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "2408:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30309,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "2408:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint232",
                              "typeString": "type(uint232)"
                            }
                          },
                          "id": 30310,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "2408:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint232",
                            "typeString": "uint232"
                          }
                        },
                        "src": "2399:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203233322062697473",
                        "id": 30312,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2427:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_5797fb2c4589bd6a92752ce0eacaac67341e37ab28c96c2284ab897e7ac77957",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 232 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 232 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_5797fb2c4589bd6a92752ce0eacaac67341e37ab28c96c2284ab897e7ac77957",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 232 bits\""
                        }
                      ],
                      "id": 30304,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "2391:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30313,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2391:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30314,
                  "nodeType": "ExpressionStatement",
                  "src": "2391:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30317,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30299,
                        "src": "2494:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30316,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "2486:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint232_$",
                        "typeString": "type(uint232)"
                      },
                      "typeName": {
                        "id": 30315,
                        "name": "uint232",
                        "nodeType": "ElementaryTypeName",
                        "src": "2486:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30318,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2486:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint232",
                      "typeString": "uint232"
                    }
                  },
                  "functionReturnParameters": 30303,
                  "id": 30319,
                  "nodeType": "Return",
                  "src": "2479:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30297,
              "nodeType": "StructuredDocumentation",
              "src": "1992:318:167",
              "text": " @dev Returns the downcasted uint232 from uint256, reverting on\n overflow (when the input is greater than largest uint232).\n Counterpart to Solidity's `uint232` operator.\n Requirements:\n - input must fit into 232 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint232",
            "nameLocation": "2324:9:167",
            "parameters": {
              "id": 30300,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30299,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "2342:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30321,
                  "src": "2334:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30298,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2334:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2333:15:167"
            },
            "returnParameters": {
              "id": 30303,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30302,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30321,
                  "src": "2372:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint232",
                    "typeString": "uint232"
                  },
                  "typeName": {
                    "id": 30301,
                    "name": "uint232",
                    "nodeType": "ElementaryTypeName",
                    "src": "2372:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint232",
                      "typeString": "uint232"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2371:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30346,
            "nodeType": "FunctionDefinition",
            "src": "2836:192:167",
            "nodes": [],
            "body": {
              "id": 30345,
              "nodeType": "Block",
              "src": "2902:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30336,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30330,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30324,
                          "src": "2920:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30333,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "2934:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint224_$",
                                  "typeString": "type(uint224)"
                                },
                                "typeName": {
                                  "id": 30332,
                                  "name": "uint224",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "2934:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint224_$",
                                  "typeString": "type(uint224)"
                                }
                              ],
                              "id": 30331,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "2929:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30334,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "2929:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint224",
                              "typeString": "type(uint224)"
                            }
                          },
                          "id": 30335,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "2929:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint224",
                            "typeString": "uint224"
                          }
                        },
                        "src": "2920:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203232342062697473",
                        "id": 30337,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2948:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_9d2acf551b2466898443b9bc3a403a4d86037386bc5a8960c1bbb0f204e69b79",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 224 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 224 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_9d2acf551b2466898443b9bc3a403a4d86037386bc5a8960c1bbb0f204e69b79",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 224 bits\""
                        }
                      ],
                      "id": 30329,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "2912:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30338,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2912:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30339,
                  "nodeType": "ExpressionStatement",
                  "src": "2912:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30342,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30324,
                        "src": "3015:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30341,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "3007:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint224_$",
                        "typeString": "type(uint224)"
                      },
                      "typeName": {
                        "id": 30340,
                        "name": "uint224",
                        "nodeType": "ElementaryTypeName",
                        "src": "3007:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30343,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3007:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint224",
                      "typeString": "uint224"
                    }
                  },
                  "functionReturnParameters": 30328,
                  "id": 30344,
                  "nodeType": "Return",
                  "src": "3000:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30322,
              "nodeType": "StructuredDocumentation",
              "src": "2513:318:167",
              "text": " @dev Returns the downcasted uint224 from uint256, reverting on\n overflow (when the input is greater than largest uint224).\n Counterpart to Solidity's `uint224` operator.\n Requirements:\n - input must fit into 224 bits\n _Available since v4.2._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint224",
            "nameLocation": "2845:9:167",
            "parameters": {
              "id": 30325,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30324,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "2863:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30346,
                  "src": "2855:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30323,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2855:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2854:15:167"
            },
            "returnParameters": {
              "id": 30328,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30327,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30346,
                  "src": "2893:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint224",
                    "typeString": "uint224"
                  },
                  "typeName": {
                    "id": 30326,
                    "name": "uint224",
                    "nodeType": "ElementaryTypeName",
                    "src": "2893:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint224",
                      "typeString": "uint224"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2892:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30371,
            "nodeType": "FunctionDefinition",
            "src": "3357:192:167",
            "nodes": [],
            "body": {
              "id": 30370,
              "nodeType": "Block",
              "src": "3423:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30361,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30355,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30349,
                          "src": "3441:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30358,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "3455:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint216_$",
                                  "typeString": "type(uint216)"
                                },
                                "typeName": {
                                  "id": 30357,
                                  "name": "uint216",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "3455:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint216_$",
                                  "typeString": "type(uint216)"
                                }
                              ],
                              "id": 30356,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "3450:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30359,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "3450:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint216",
                              "typeString": "type(uint216)"
                            }
                          },
                          "id": 30360,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "3450:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint216",
                            "typeString": "uint216"
                          }
                        },
                        "src": "3441:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203231362062697473",
                        "id": 30362,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "3469:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_8966adc0aad8dc91b207c69c3eb4937e498af8cc706cfe7edd55f3a6ea53488d",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 216 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 216 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_8966adc0aad8dc91b207c69c3eb4937e498af8cc706cfe7edd55f3a6ea53488d",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 216 bits\""
                        }
                      ],
                      "id": 30354,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "3433:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30363,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3433:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30364,
                  "nodeType": "ExpressionStatement",
                  "src": "3433:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30367,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30349,
                        "src": "3536:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30366,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "3528:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint216_$",
                        "typeString": "type(uint216)"
                      },
                      "typeName": {
                        "id": 30365,
                        "name": "uint216",
                        "nodeType": "ElementaryTypeName",
                        "src": "3528:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30368,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3528:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint216",
                      "typeString": "uint216"
                    }
                  },
                  "functionReturnParameters": 30353,
                  "id": 30369,
                  "nodeType": "Return",
                  "src": "3521:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30347,
              "nodeType": "StructuredDocumentation",
              "src": "3034:318:167",
              "text": " @dev Returns the downcasted uint216 from uint256, reverting on\n overflow (when the input is greater than largest uint216).\n Counterpart to Solidity's `uint216` operator.\n Requirements:\n - input must fit into 216 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint216",
            "nameLocation": "3366:9:167",
            "parameters": {
              "id": 30350,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30349,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "3384:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30371,
                  "src": "3376:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30348,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3376:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3375:15:167"
            },
            "returnParameters": {
              "id": 30353,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30352,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30371,
                  "src": "3414:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint216",
                    "typeString": "uint216"
                  },
                  "typeName": {
                    "id": 30351,
                    "name": "uint216",
                    "nodeType": "ElementaryTypeName",
                    "src": "3414:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint216",
                      "typeString": "uint216"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3413:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30396,
            "nodeType": "FunctionDefinition",
            "src": "3878:192:167",
            "nodes": [],
            "body": {
              "id": 30395,
              "nodeType": "Block",
              "src": "3944:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30386,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30380,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30374,
                          "src": "3962:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30383,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "3976:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint208_$",
                                  "typeString": "type(uint208)"
                                },
                                "typeName": {
                                  "id": 30382,
                                  "name": "uint208",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "3976:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint208_$",
                                  "typeString": "type(uint208)"
                                }
                              ],
                              "id": 30381,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "3971:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30384,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "3971:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint208",
                              "typeString": "type(uint208)"
                            }
                          },
                          "id": 30385,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "3971:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint208",
                            "typeString": "uint208"
                          }
                        },
                        "src": "3962:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203230382062697473",
                        "id": 30387,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "3990:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_43d81217fa633fa1c6e88855de94fb990f5831ac266b0a90afa660e986ab5e23",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 208 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 208 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_43d81217fa633fa1c6e88855de94fb990f5831ac266b0a90afa660e986ab5e23",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 208 bits\""
                        }
                      ],
                      "id": 30379,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "3954:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30388,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3954:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30389,
                  "nodeType": "ExpressionStatement",
                  "src": "3954:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30392,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30374,
                        "src": "4057:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30391,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "4049:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint208_$",
                        "typeString": "type(uint208)"
                      },
                      "typeName": {
                        "id": 30390,
                        "name": "uint208",
                        "nodeType": "ElementaryTypeName",
                        "src": "4049:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30393,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4049:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint208",
                      "typeString": "uint208"
                    }
                  },
                  "functionReturnParameters": 30378,
                  "id": 30394,
                  "nodeType": "Return",
                  "src": "4042:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30372,
              "nodeType": "StructuredDocumentation",
              "src": "3555:318:167",
              "text": " @dev Returns the downcasted uint208 from uint256, reverting on\n overflow (when the input is greater than largest uint208).\n Counterpart to Solidity's `uint208` operator.\n Requirements:\n - input must fit into 208 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint208",
            "nameLocation": "3887:9:167",
            "parameters": {
              "id": 30375,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30374,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "3905:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30396,
                  "src": "3897:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30373,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3897:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3896:15:167"
            },
            "returnParameters": {
              "id": 30378,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30377,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30396,
                  "src": "3935:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint208",
                    "typeString": "uint208"
                  },
                  "typeName": {
                    "id": 30376,
                    "name": "uint208",
                    "nodeType": "ElementaryTypeName",
                    "src": "3935:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint208",
                      "typeString": "uint208"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3934:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30421,
            "nodeType": "FunctionDefinition",
            "src": "4399:192:167",
            "nodes": [],
            "body": {
              "id": 30420,
              "nodeType": "Block",
              "src": "4465:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30411,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30405,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30399,
                          "src": "4483:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30408,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "4497:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint200_$",
                                  "typeString": "type(uint200)"
                                },
                                "typeName": {
                                  "id": 30407,
                                  "name": "uint200",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "4497:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint200_$",
                                  "typeString": "type(uint200)"
                                }
                              ],
                              "id": 30406,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "4492:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30409,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "4492:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint200",
                              "typeString": "type(uint200)"
                            }
                          },
                          "id": 30410,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "4492:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint200",
                            "typeString": "uint200"
                          }
                        },
                        "src": "4483:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203230302062697473",
                        "id": 30412,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "4511:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_df8130f294fe2698967ea9ead82c4da9454490567d976d00551e0174e655314c",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 200 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 200 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_df8130f294fe2698967ea9ead82c4da9454490567d976d00551e0174e655314c",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 200 bits\""
                        }
                      ],
                      "id": 30404,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "4475:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30413,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4475:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30414,
                  "nodeType": "ExpressionStatement",
                  "src": "4475:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30417,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30399,
                        "src": "4578:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30416,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "4570:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint200_$",
                        "typeString": "type(uint200)"
                      },
                      "typeName": {
                        "id": 30415,
                        "name": "uint200",
                        "nodeType": "ElementaryTypeName",
                        "src": "4570:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30418,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4570:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint200",
                      "typeString": "uint200"
                    }
                  },
                  "functionReturnParameters": 30403,
                  "id": 30419,
                  "nodeType": "Return",
                  "src": "4563:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30397,
              "nodeType": "StructuredDocumentation",
              "src": "4076:318:167",
              "text": " @dev Returns the downcasted uint200 from uint256, reverting on\n overflow (when the input is greater than largest uint200).\n Counterpart to Solidity's `uint200` operator.\n Requirements:\n - input must fit into 200 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint200",
            "nameLocation": "4408:9:167",
            "parameters": {
              "id": 30400,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30399,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "4426:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30421,
                  "src": "4418:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30398,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4418:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4417:15:167"
            },
            "returnParameters": {
              "id": 30403,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30402,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30421,
                  "src": "4456:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint200",
                    "typeString": "uint200"
                  },
                  "typeName": {
                    "id": 30401,
                    "name": "uint200",
                    "nodeType": "ElementaryTypeName",
                    "src": "4456:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint200",
                      "typeString": "uint200"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4455:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30446,
            "nodeType": "FunctionDefinition",
            "src": "4920:192:167",
            "nodes": [],
            "body": {
              "id": 30445,
              "nodeType": "Block",
              "src": "4986:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30436,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30430,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30424,
                          "src": "5004:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30433,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "5018:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint192_$",
                                  "typeString": "type(uint192)"
                                },
                                "typeName": {
                                  "id": 30432,
                                  "name": "uint192",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "5018:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint192_$",
                                  "typeString": "type(uint192)"
                                }
                              ],
                              "id": 30431,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "5013:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30434,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "5013:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint192",
                              "typeString": "type(uint192)"
                            }
                          },
                          "id": 30435,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "5013:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint192",
                            "typeString": "uint192"
                          }
                        },
                        "src": "5004:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203139322062697473",
                        "id": 30437,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "5032:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_112978800f12a1c4f1eab82789f7b6defd49dc1c17ba270a84ffc28392fb05ae",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 192 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 192 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_112978800f12a1c4f1eab82789f7b6defd49dc1c17ba270a84ffc28392fb05ae",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 192 bits\""
                        }
                      ],
                      "id": 30429,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "4996:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30438,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4996:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30439,
                  "nodeType": "ExpressionStatement",
                  "src": "4996:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30442,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30424,
                        "src": "5099:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30441,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "5091:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint192_$",
                        "typeString": "type(uint192)"
                      },
                      "typeName": {
                        "id": 30440,
                        "name": "uint192",
                        "nodeType": "ElementaryTypeName",
                        "src": "5091:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30443,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5091:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint192",
                      "typeString": "uint192"
                    }
                  },
                  "functionReturnParameters": 30428,
                  "id": 30444,
                  "nodeType": "Return",
                  "src": "5084:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30422,
              "nodeType": "StructuredDocumentation",
              "src": "4597:318:167",
              "text": " @dev Returns the downcasted uint192 from uint256, reverting on\n overflow (when the input is greater than largest uint192).\n Counterpart to Solidity's `uint192` operator.\n Requirements:\n - input must fit into 192 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint192",
            "nameLocation": "4929:9:167",
            "parameters": {
              "id": 30425,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30424,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "4947:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30446,
                  "src": "4939:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30423,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4939:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4938:15:167"
            },
            "returnParameters": {
              "id": 30428,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30427,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30446,
                  "src": "4977:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint192",
                    "typeString": "uint192"
                  },
                  "typeName": {
                    "id": 30426,
                    "name": "uint192",
                    "nodeType": "ElementaryTypeName",
                    "src": "4977:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint192",
                      "typeString": "uint192"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4976:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30471,
            "nodeType": "FunctionDefinition",
            "src": "5441:192:167",
            "nodes": [],
            "body": {
              "id": 30470,
              "nodeType": "Block",
              "src": "5507:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30461,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30455,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30449,
                          "src": "5525:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30458,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "5539:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint184_$",
                                  "typeString": "type(uint184)"
                                },
                                "typeName": {
                                  "id": 30457,
                                  "name": "uint184",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "5539:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint184_$",
                                  "typeString": "type(uint184)"
                                }
                              ],
                              "id": 30456,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "5534:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30459,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "5534:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint184",
                              "typeString": "type(uint184)"
                            }
                          },
                          "id": 30460,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "5534:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint184",
                            "typeString": "uint184"
                          }
                        },
                        "src": "5525:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203138342062697473",
                        "id": 30462,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "5553:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_86c53d89b1944d561ecfa42e859033241d1df6ea8d42a57ae02f79d45de4aa75",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 184 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 184 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_86c53d89b1944d561ecfa42e859033241d1df6ea8d42a57ae02f79d45de4aa75",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 184 bits\""
                        }
                      ],
                      "id": 30454,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "5517:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30463,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5517:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30464,
                  "nodeType": "ExpressionStatement",
                  "src": "5517:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30467,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30449,
                        "src": "5620:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30466,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "5612:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint184_$",
                        "typeString": "type(uint184)"
                      },
                      "typeName": {
                        "id": 30465,
                        "name": "uint184",
                        "nodeType": "ElementaryTypeName",
                        "src": "5612:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30468,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5612:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint184",
                      "typeString": "uint184"
                    }
                  },
                  "functionReturnParameters": 30453,
                  "id": 30469,
                  "nodeType": "Return",
                  "src": "5605:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30447,
              "nodeType": "StructuredDocumentation",
              "src": "5118:318:167",
              "text": " @dev Returns the downcasted uint184 from uint256, reverting on\n overflow (when the input is greater than largest uint184).\n Counterpart to Solidity's `uint184` operator.\n Requirements:\n - input must fit into 184 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint184",
            "nameLocation": "5450:9:167",
            "parameters": {
              "id": 30450,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30449,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "5468:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30471,
                  "src": "5460:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30448,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5460:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5459:15:167"
            },
            "returnParameters": {
              "id": 30453,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30452,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30471,
                  "src": "5498:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint184",
                    "typeString": "uint184"
                  },
                  "typeName": {
                    "id": 30451,
                    "name": "uint184",
                    "nodeType": "ElementaryTypeName",
                    "src": "5498:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint184",
                      "typeString": "uint184"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5497:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30496,
            "nodeType": "FunctionDefinition",
            "src": "5962:192:167",
            "nodes": [],
            "body": {
              "id": 30495,
              "nodeType": "Block",
              "src": "6028:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30486,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30480,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30474,
                          "src": "6046:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30483,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "6060:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint176_$",
                                  "typeString": "type(uint176)"
                                },
                                "typeName": {
                                  "id": 30482,
                                  "name": "uint176",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "6060:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint176_$",
                                  "typeString": "type(uint176)"
                                }
                              ],
                              "id": 30481,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "6055:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30484,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "6055:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint176",
                              "typeString": "type(uint176)"
                            }
                          },
                          "id": 30485,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "6055:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint176",
                            "typeString": "uint176"
                          }
                        },
                        "src": "6046:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203137362062697473",
                        "id": 30487,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "6074:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_4069e970f734339c7841e84a1b26f503bff22b76884c1168dc24e2e6af9b1e30",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 176 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 176 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_4069e970f734339c7841e84a1b26f503bff22b76884c1168dc24e2e6af9b1e30",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 176 bits\""
                        }
                      ],
                      "id": 30479,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "6038:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30488,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6038:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30489,
                  "nodeType": "ExpressionStatement",
                  "src": "6038:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30492,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30474,
                        "src": "6141:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30491,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "6133:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint176_$",
                        "typeString": "type(uint176)"
                      },
                      "typeName": {
                        "id": 30490,
                        "name": "uint176",
                        "nodeType": "ElementaryTypeName",
                        "src": "6133:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30493,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6133:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint176",
                      "typeString": "uint176"
                    }
                  },
                  "functionReturnParameters": 30478,
                  "id": 30494,
                  "nodeType": "Return",
                  "src": "6126:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30472,
              "nodeType": "StructuredDocumentation",
              "src": "5639:318:167",
              "text": " @dev Returns the downcasted uint176 from uint256, reverting on\n overflow (when the input is greater than largest uint176).\n Counterpart to Solidity's `uint176` operator.\n Requirements:\n - input must fit into 176 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint176",
            "nameLocation": "5971:9:167",
            "parameters": {
              "id": 30475,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30474,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "5989:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30496,
                  "src": "5981:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30473,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5981:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5980:15:167"
            },
            "returnParameters": {
              "id": 30478,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30477,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30496,
                  "src": "6019:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint176",
                    "typeString": "uint176"
                  },
                  "typeName": {
                    "id": 30476,
                    "name": "uint176",
                    "nodeType": "ElementaryTypeName",
                    "src": "6019:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint176",
                      "typeString": "uint176"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6018:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30521,
            "nodeType": "FunctionDefinition",
            "src": "6483:192:167",
            "nodes": [],
            "body": {
              "id": 30520,
              "nodeType": "Block",
              "src": "6549:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30511,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30505,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30499,
                          "src": "6567:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30508,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "6581:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint168_$",
                                  "typeString": "type(uint168)"
                                },
                                "typeName": {
                                  "id": 30507,
                                  "name": "uint168",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "6581:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint168_$",
                                  "typeString": "type(uint168)"
                                }
                              ],
                              "id": 30506,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "6576:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30509,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "6576:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint168",
                              "typeString": "type(uint168)"
                            }
                          },
                          "id": 30510,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "6576:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint168",
                            "typeString": "uint168"
                          }
                        },
                        "src": "6567:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203136382062697473",
                        "id": 30512,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "6595:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_67ef32a3cbe7b34392347d335b0a7ae95c74a34ca40e4efb58f6c9a3154e85a1",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 168 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 168 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_67ef32a3cbe7b34392347d335b0a7ae95c74a34ca40e4efb58f6c9a3154e85a1",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 168 bits\""
                        }
                      ],
                      "id": 30504,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "6559:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30513,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6559:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30514,
                  "nodeType": "ExpressionStatement",
                  "src": "6559:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30517,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30499,
                        "src": "6662:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30516,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "6654:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint168_$",
                        "typeString": "type(uint168)"
                      },
                      "typeName": {
                        "id": 30515,
                        "name": "uint168",
                        "nodeType": "ElementaryTypeName",
                        "src": "6654:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30518,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6654:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint168",
                      "typeString": "uint168"
                    }
                  },
                  "functionReturnParameters": 30503,
                  "id": 30519,
                  "nodeType": "Return",
                  "src": "6647:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30497,
              "nodeType": "StructuredDocumentation",
              "src": "6160:318:167",
              "text": " @dev Returns the downcasted uint168 from uint256, reverting on\n overflow (when the input is greater than largest uint168).\n Counterpart to Solidity's `uint168` operator.\n Requirements:\n - input must fit into 168 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint168",
            "nameLocation": "6492:9:167",
            "parameters": {
              "id": 30500,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30499,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "6510:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30521,
                  "src": "6502:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30498,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6502:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6501:15:167"
            },
            "returnParameters": {
              "id": 30503,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30502,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30521,
                  "src": "6540:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint168",
                    "typeString": "uint168"
                  },
                  "typeName": {
                    "id": 30501,
                    "name": "uint168",
                    "nodeType": "ElementaryTypeName",
                    "src": "6540:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint168",
                      "typeString": "uint168"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6539:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30546,
            "nodeType": "FunctionDefinition",
            "src": "7004:192:167",
            "nodes": [],
            "body": {
              "id": 30545,
              "nodeType": "Block",
              "src": "7070:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30536,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30530,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30524,
                          "src": "7088:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30533,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "7102:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint160_$",
                                  "typeString": "type(uint160)"
                                },
                                "typeName": {
                                  "id": 30532,
                                  "name": "uint160",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "7102:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint160_$",
                                  "typeString": "type(uint160)"
                                }
                              ],
                              "id": 30531,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "7097:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30534,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "7097:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint160",
                              "typeString": "type(uint160)"
                            }
                          },
                          "id": 30535,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "7097:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint160",
                            "typeString": "uint160"
                          }
                        },
                        "src": "7088:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203136302062697473",
                        "id": 30537,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "7116:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_976ecce9083debfe29d3a99b955facf24b8725f1b964d1a5bb4197ffcd60ab9d",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 160 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 160 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_976ecce9083debfe29d3a99b955facf24b8725f1b964d1a5bb4197ffcd60ab9d",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 160 bits\""
                        }
                      ],
                      "id": 30529,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "7080:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30538,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7080:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30539,
                  "nodeType": "ExpressionStatement",
                  "src": "7080:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30542,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30524,
                        "src": "7183:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30541,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "7175:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint160_$",
                        "typeString": "type(uint160)"
                      },
                      "typeName": {
                        "id": 30540,
                        "name": "uint160",
                        "nodeType": "ElementaryTypeName",
                        "src": "7175:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30543,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7175:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint160",
                      "typeString": "uint160"
                    }
                  },
                  "functionReturnParameters": 30528,
                  "id": 30544,
                  "nodeType": "Return",
                  "src": "7168:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30522,
              "nodeType": "StructuredDocumentation",
              "src": "6681:318:167",
              "text": " @dev Returns the downcasted uint160 from uint256, reverting on\n overflow (when the input is greater than largest uint160).\n Counterpart to Solidity's `uint160` operator.\n Requirements:\n - input must fit into 160 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint160",
            "nameLocation": "7013:9:167",
            "parameters": {
              "id": 30525,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30524,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "7031:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30546,
                  "src": "7023:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30523,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7023:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7022:15:167"
            },
            "returnParameters": {
              "id": 30528,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30527,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30546,
                  "src": "7061:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint160",
                    "typeString": "uint160"
                  },
                  "typeName": {
                    "id": 30526,
                    "name": "uint160",
                    "nodeType": "ElementaryTypeName",
                    "src": "7061:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint160",
                      "typeString": "uint160"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7060:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30571,
            "nodeType": "FunctionDefinition",
            "src": "7525:192:167",
            "nodes": [],
            "body": {
              "id": 30570,
              "nodeType": "Block",
              "src": "7591:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30561,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30555,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30549,
                          "src": "7609:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30558,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "7623:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint152_$",
                                  "typeString": "type(uint152)"
                                },
                                "typeName": {
                                  "id": 30557,
                                  "name": "uint152",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "7623:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint152_$",
                                  "typeString": "type(uint152)"
                                }
                              ],
                              "id": 30556,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "7618:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30559,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "7618:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint152",
                              "typeString": "type(uint152)"
                            }
                          },
                          "id": 30560,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "7618:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint152",
                            "typeString": "uint152"
                          }
                        },
                        "src": "7609:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203135322062697473",
                        "id": 30562,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "7637:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_211cad43a2caf5f01e34af51190b8a7b6f3d9c195bd25586ea12242191b97831",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 152 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 152 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_211cad43a2caf5f01e34af51190b8a7b6f3d9c195bd25586ea12242191b97831",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 152 bits\""
                        }
                      ],
                      "id": 30554,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "7601:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30563,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7601:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30564,
                  "nodeType": "ExpressionStatement",
                  "src": "7601:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30567,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30549,
                        "src": "7704:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30566,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "7696:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint152_$",
                        "typeString": "type(uint152)"
                      },
                      "typeName": {
                        "id": 30565,
                        "name": "uint152",
                        "nodeType": "ElementaryTypeName",
                        "src": "7696:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30568,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7696:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint152",
                      "typeString": "uint152"
                    }
                  },
                  "functionReturnParameters": 30553,
                  "id": 30569,
                  "nodeType": "Return",
                  "src": "7689:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30547,
              "nodeType": "StructuredDocumentation",
              "src": "7202:318:167",
              "text": " @dev Returns the downcasted uint152 from uint256, reverting on\n overflow (when the input is greater than largest uint152).\n Counterpart to Solidity's `uint152` operator.\n Requirements:\n - input must fit into 152 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint152",
            "nameLocation": "7534:9:167",
            "parameters": {
              "id": 30550,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30549,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "7552:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30571,
                  "src": "7544:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30548,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7544:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7543:15:167"
            },
            "returnParameters": {
              "id": 30553,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30552,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30571,
                  "src": "7582:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint152",
                    "typeString": "uint152"
                  },
                  "typeName": {
                    "id": 30551,
                    "name": "uint152",
                    "nodeType": "ElementaryTypeName",
                    "src": "7582:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint152",
                      "typeString": "uint152"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7581:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30596,
            "nodeType": "FunctionDefinition",
            "src": "8046:192:167",
            "nodes": [],
            "body": {
              "id": 30595,
              "nodeType": "Block",
              "src": "8112:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30586,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30580,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30574,
                          "src": "8130:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30583,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "8144:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint144_$",
                                  "typeString": "type(uint144)"
                                },
                                "typeName": {
                                  "id": 30582,
                                  "name": "uint144",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "8144:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint144_$",
                                  "typeString": "type(uint144)"
                                }
                              ],
                              "id": 30581,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "8139:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30584,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "8139:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint144",
                              "typeString": "type(uint144)"
                            }
                          },
                          "id": 30585,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "8139:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint144",
                            "typeString": "uint144"
                          }
                        },
                        "src": "8130:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203134342062697473",
                        "id": 30587,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "8158:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_17d8c5a6d3b2fd2517ba2e4a2ac70a3367cd362448f8338aaa6edf8bfd812bab",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 144 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 144 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_17d8c5a6d3b2fd2517ba2e4a2ac70a3367cd362448f8338aaa6edf8bfd812bab",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 144 bits\""
                        }
                      ],
                      "id": 30579,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "8122:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30588,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "8122:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30589,
                  "nodeType": "ExpressionStatement",
                  "src": "8122:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30592,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30574,
                        "src": "8225:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30591,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "8217:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint144_$",
                        "typeString": "type(uint144)"
                      },
                      "typeName": {
                        "id": 30590,
                        "name": "uint144",
                        "nodeType": "ElementaryTypeName",
                        "src": "8217:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30593,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "8217:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint144",
                      "typeString": "uint144"
                    }
                  },
                  "functionReturnParameters": 30578,
                  "id": 30594,
                  "nodeType": "Return",
                  "src": "8210:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30572,
              "nodeType": "StructuredDocumentation",
              "src": "7723:318:167",
              "text": " @dev Returns the downcasted uint144 from uint256, reverting on\n overflow (when the input is greater than largest uint144).\n Counterpart to Solidity's `uint144` operator.\n Requirements:\n - input must fit into 144 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint144",
            "nameLocation": "8055:9:167",
            "parameters": {
              "id": 30575,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30574,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "8073:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30596,
                  "src": "8065:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30573,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8065:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "8064:15:167"
            },
            "returnParameters": {
              "id": 30578,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30577,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30596,
                  "src": "8103:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint144",
                    "typeString": "uint144"
                  },
                  "typeName": {
                    "id": 30576,
                    "name": "uint144",
                    "nodeType": "ElementaryTypeName",
                    "src": "8103:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint144",
                      "typeString": "uint144"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "8102:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30621,
            "nodeType": "FunctionDefinition",
            "src": "8567:192:167",
            "nodes": [],
            "body": {
              "id": 30620,
              "nodeType": "Block",
              "src": "8633:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30611,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30605,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30599,
                          "src": "8651:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30608,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "8665:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint136_$",
                                  "typeString": "type(uint136)"
                                },
                                "typeName": {
                                  "id": 30607,
                                  "name": "uint136",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "8665:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint136_$",
                                  "typeString": "type(uint136)"
                                }
                              ],
                              "id": 30606,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "8660:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30609,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "8660:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint136",
                              "typeString": "type(uint136)"
                            }
                          },
                          "id": 30610,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "8660:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint136",
                            "typeString": "uint136"
                          }
                        },
                        "src": "8651:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203133362062697473",
                        "id": 30612,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "8679:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_8b1f81e2e2913e1cee9dba7bcd9837bbf8a8122edaac4afc578271db3c25a56a",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 136 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 136 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_8b1f81e2e2913e1cee9dba7bcd9837bbf8a8122edaac4afc578271db3c25a56a",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 136 bits\""
                        }
                      ],
                      "id": 30604,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "8643:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30613,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "8643:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30614,
                  "nodeType": "ExpressionStatement",
                  "src": "8643:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30617,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30599,
                        "src": "8746:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30616,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "8738:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint136_$",
                        "typeString": "type(uint136)"
                      },
                      "typeName": {
                        "id": 30615,
                        "name": "uint136",
                        "nodeType": "ElementaryTypeName",
                        "src": "8738:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30618,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "8738:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint136",
                      "typeString": "uint136"
                    }
                  },
                  "functionReturnParameters": 30603,
                  "id": 30619,
                  "nodeType": "Return",
                  "src": "8731:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30597,
              "nodeType": "StructuredDocumentation",
              "src": "8244:318:167",
              "text": " @dev Returns the downcasted uint136 from uint256, reverting on\n overflow (when the input is greater than largest uint136).\n Counterpart to Solidity's `uint136` operator.\n Requirements:\n - input must fit into 136 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint136",
            "nameLocation": "8576:9:167",
            "parameters": {
              "id": 30600,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30599,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "8594:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30621,
                  "src": "8586:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30598,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8586:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "8585:15:167"
            },
            "returnParameters": {
              "id": 30603,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30602,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30621,
                  "src": "8624:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint136",
                    "typeString": "uint136"
                  },
                  "typeName": {
                    "id": 30601,
                    "name": "uint136",
                    "nodeType": "ElementaryTypeName",
                    "src": "8624:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint136",
                      "typeString": "uint136"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "8623:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30646,
            "nodeType": "FunctionDefinition",
            "src": "9088:192:167",
            "nodes": [],
            "body": {
              "id": 30645,
              "nodeType": "Block",
              "src": "9154:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30636,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30630,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30624,
                          "src": "9172:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30633,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "9186:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint128_$",
                                  "typeString": "type(uint128)"
                                },
                                "typeName": {
                                  "id": 30632,
                                  "name": "uint128",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "9186:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint128_$",
                                  "typeString": "type(uint128)"
                                }
                              ],
                              "id": 30631,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "9181:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30634,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "9181:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint128",
                              "typeString": "type(uint128)"
                            }
                          },
                          "id": 30635,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "9181:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint128",
                            "typeString": "uint128"
                          }
                        },
                        "src": "9172:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203132382062697473",
                        "id": 30637,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "9200:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_47a1e201974f94d3d1a31c8b08ae18c6966c758bdcd4400020012b98cc55426c",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 128 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 128 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_47a1e201974f94d3d1a31c8b08ae18c6966c758bdcd4400020012b98cc55426c",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 128 bits\""
                        }
                      ],
                      "id": 30629,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "9164:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30638,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "9164:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30639,
                  "nodeType": "ExpressionStatement",
                  "src": "9164:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30642,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30624,
                        "src": "9267:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30641,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "9259:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint128_$",
                        "typeString": "type(uint128)"
                      },
                      "typeName": {
                        "id": 30640,
                        "name": "uint128",
                        "nodeType": "ElementaryTypeName",
                        "src": "9259:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30643,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "9259:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint128",
                      "typeString": "uint128"
                    }
                  },
                  "functionReturnParameters": 30628,
                  "id": 30644,
                  "nodeType": "Return",
                  "src": "9252:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30622,
              "nodeType": "StructuredDocumentation",
              "src": "8765:318:167",
              "text": " @dev Returns the downcasted uint128 from uint256, reverting on\n overflow (when the input is greater than largest uint128).\n Counterpart to Solidity's `uint128` operator.\n Requirements:\n - input must fit into 128 bits\n _Available since v2.5._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint128",
            "nameLocation": "9097:9:167",
            "parameters": {
              "id": 30625,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30624,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "9115:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30646,
                  "src": "9107:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30623,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "9107:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "9106:15:167"
            },
            "returnParameters": {
              "id": 30628,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30627,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30646,
                  "src": "9145:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint128",
                    "typeString": "uint128"
                  },
                  "typeName": {
                    "id": 30626,
                    "name": "uint128",
                    "nodeType": "ElementaryTypeName",
                    "src": "9145:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint128",
                      "typeString": "uint128"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "9144:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30671,
            "nodeType": "FunctionDefinition",
            "src": "9609:192:167",
            "nodes": [],
            "body": {
              "id": 30670,
              "nodeType": "Block",
              "src": "9675:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30661,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30655,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30649,
                          "src": "9693:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30658,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "9707:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint120_$",
                                  "typeString": "type(uint120)"
                                },
                                "typeName": {
                                  "id": 30657,
                                  "name": "uint120",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "9707:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint120_$",
                                  "typeString": "type(uint120)"
                                }
                              ],
                              "id": 30656,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "9702:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30659,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "9702:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint120",
                              "typeString": "type(uint120)"
                            }
                          },
                          "id": 30660,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "9702:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint120",
                            "typeString": "uint120"
                          }
                        },
                        "src": "9693:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203132302062697473",
                        "id": 30662,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "9721:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_3c40c26bb27060cce77002ca0c426dcc1bef2d367c195ca2eb24bd8b2cc1bb09",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 120 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 120 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_3c40c26bb27060cce77002ca0c426dcc1bef2d367c195ca2eb24bd8b2cc1bb09",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 120 bits\""
                        }
                      ],
                      "id": 30654,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "9685:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30663,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "9685:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30664,
                  "nodeType": "ExpressionStatement",
                  "src": "9685:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30667,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30649,
                        "src": "9788:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30666,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "9780:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint120_$",
                        "typeString": "type(uint120)"
                      },
                      "typeName": {
                        "id": 30665,
                        "name": "uint120",
                        "nodeType": "ElementaryTypeName",
                        "src": "9780:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30668,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "9780:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint120",
                      "typeString": "uint120"
                    }
                  },
                  "functionReturnParameters": 30653,
                  "id": 30669,
                  "nodeType": "Return",
                  "src": "9773:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30647,
              "nodeType": "StructuredDocumentation",
              "src": "9286:318:167",
              "text": " @dev Returns the downcasted uint120 from uint256, reverting on\n overflow (when the input is greater than largest uint120).\n Counterpart to Solidity's `uint120` operator.\n Requirements:\n - input must fit into 120 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint120",
            "nameLocation": "9618:9:167",
            "parameters": {
              "id": 30650,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30649,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "9636:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30671,
                  "src": "9628:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30648,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "9628:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "9627:15:167"
            },
            "returnParameters": {
              "id": 30653,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30652,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30671,
                  "src": "9666:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint120",
                    "typeString": "uint120"
                  },
                  "typeName": {
                    "id": 30651,
                    "name": "uint120",
                    "nodeType": "ElementaryTypeName",
                    "src": "9666:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint120",
                      "typeString": "uint120"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "9665:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30696,
            "nodeType": "FunctionDefinition",
            "src": "10130:192:167",
            "nodes": [],
            "body": {
              "id": 30695,
              "nodeType": "Block",
              "src": "10196:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30686,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30680,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30674,
                          "src": "10214:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30683,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "10228:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint112_$",
                                  "typeString": "type(uint112)"
                                },
                                "typeName": {
                                  "id": 30682,
                                  "name": "uint112",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "10228:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint112_$",
                                  "typeString": "type(uint112)"
                                }
                              ],
                              "id": 30681,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "10223:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30684,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "10223:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint112",
                              "typeString": "type(uint112)"
                            }
                          },
                          "id": 30685,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "10223:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint112",
                            "typeString": "uint112"
                          }
                        },
                        "src": "10214:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203131322062697473",
                        "id": 30687,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "10242:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_45659ae152ef697531e1c1115de07c87af91ac22466c3e76b808821799776efd",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 112 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 112 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_45659ae152ef697531e1c1115de07c87af91ac22466c3e76b808821799776efd",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 112 bits\""
                        }
                      ],
                      "id": 30679,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "10206:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30688,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "10206:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30689,
                  "nodeType": "ExpressionStatement",
                  "src": "10206:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30692,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30674,
                        "src": "10309:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30691,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "10301:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint112_$",
                        "typeString": "type(uint112)"
                      },
                      "typeName": {
                        "id": 30690,
                        "name": "uint112",
                        "nodeType": "ElementaryTypeName",
                        "src": "10301:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30693,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "10301:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint112",
                      "typeString": "uint112"
                    }
                  },
                  "functionReturnParameters": 30678,
                  "id": 30694,
                  "nodeType": "Return",
                  "src": "10294:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30672,
              "nodeType": "StructuredDocumentation",
              "src": "9807:318:167",
              "text": " @dev Returns the downcasted uint112 from uint256, reverting on\n overflow (when the input is greater than largest uint112).\n Counterpart to Solidity's `uint112` operator.\n Requirements:\n - input must fit into 112 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint112",
            "nameLocation": "10139:9:167",
            "parameters": {
              "id": 30675,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30674,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "10157:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30696,
                  "src": "10149:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30673,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "10149:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "10148:15:167"
            },
            "returnParameters": {
              "id": 30678,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30677,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30696,
                  "src": "10187:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint112",
                    "typeString": "uint112"
                  },
                  "typeName": {
                    "id": 30676,
                    "name": "uint112",
                    "nodeType": "ElementaryTypeName",
                    "src": "10187:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint112",
                      "typeString": "uint112"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "10186:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30721,
            "nodeType": "FunctionDefinition",
            "src": "10651:192:167",
            "nodes": [],
            "body": {
              "id": 30720,
              "nodeType": "Block",
              "src": "10717:126:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30711,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30705,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30699,
                          "src": "10735:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30708,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "10749:7:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint104_$",
                                  "typeString": "type(uint104)"
                                },
                                "typeName": {
                                  "id": 30707,
                                  "name": "uint104",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "10749:7:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint104_$",
                                  "typeString": "type(uint104)"
                                }
                              ],
                              "id": 30706,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "10744:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30709,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "10744:13:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint104",
                              "typeString": "type(uint104)"
                            }
                          },
                          "id": 30710,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "10744:17:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint104",
                            "typeString": "uint104"
                          }
                        },
                        "src": "10735:26:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203130342062697473",
                        "id": 30712,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "10763:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_5d7f3e1b7e9f9a06fded6b093c6fd1473ca0a14cc4bb683db904e803e2482981",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 104 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 104 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_5d7f3e1b7e9f9a06fded6b093c6fd1473ca0a14cc4bb683db904e803e2482981",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 104 bits\""
                        }
                      ],
                      "id": 30704,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "10727:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30713,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "10727:78:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30714,
                  "nodeType": "ExpressionStatement",
                  "src": "10727:78:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30717,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30699,
                        "src": "10830:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30716,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "10822:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint104_$",
                        "typeString": "type(uint104)"
                      },
                      "typeName": {
                        "id": 30715,
                        "name": "uint104",
                        "nodeType": "ElementaryTypeName",
                        "src": "10822:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30718,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "10822:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint104",
                      "typeString": "uint104"
                    }
                  },
                  "functionReturnParameters": 30703,
                  "id": 30719,
                  "nodeType": "Return",
                  "src": "10815:21:167"
                }
              ]
            },
            "documentation": {
              "id": 30697,
              "nodeType": "StructuredDocumentation",
              "src": "10328:318:167",
              "text": " @dev Returns the downcasted uint104 from uint256, reverting on\n overflow (when the input is greater than largest uint104).\n Counterpart to Solidity's `uint104` operator.\n Requirements:\n - input must fit into 104 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint104",
            "nameLocation": "10660:9:167",
            "parameters": {
              "id": 30700,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30699,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "10678:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30721,
                  "src": "10670:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30698,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "10670:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "10669:15:167"
            },
            "returnParameters": {
              "id": 30703,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30702,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30721,
                  "src": "10708:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint104",
                    "typeString": "uint104"
                  },
                  "typeName": {
                    "id": 30701,
                    "name": "uint104",
                    "nodeType": "ElementaryTypeName",
                    "src": "10708:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint104",
                      "typeString": "uint104"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "10707:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30746,
            "nodeType": "FunctionDefinition",
            "src": "11168:187:167",
            "nodes": [],
            "body": {
              "id": 30745,
              "nodeType": "Block",
              "src": "11232:123:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30736,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30730,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30724,
                          "src": "11250:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30733,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "11264:6:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint96_$",
                                  "typeString": "type(uint96)"
                                },
                                "typeName": {
                                  "id": 30732,
                                  "name": "uint96",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "11264:6:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint96_$",
                                  "typeString": "type(uint96)"
                                }
                              ],
                              "id": 30731,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "11259:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30734,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "11259:12:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint96",
                              "typeString": "type(uint96)"
                            }
                          },
                          "id": 30735,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "11259:16:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint96",
                            "typeString": "uint96"
                          }
                        },
                        "src": "11250:25:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2039362062697473",
                        "id": 30737,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "11277:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_06d20189090e973729391526269baef79c35dd621633195648e5f8309eef9e19",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 96 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 96 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_06d20189090e973729391526269baef79c35dd621633195648e5f8309eef9e19",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 96 bits\""
                        }
                      ],
                      "id": 30729,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "11242:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30738,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "11242:76:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30739,
                  "nodeType": "ExpressionStatement",
                  "src": "11242:76:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30742,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30724,
                        "src": "11342:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30741,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "11335:6:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint96_$",
                        "typeString": "type(uint96)"
                      },
                      "typeName": {
                        "id": 30740,
                        "name": "uint96",
                        "nodeType": "ElementaryTypeName",
                        "src": "11335:6:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30743,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "11335:13:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint96",
                      "typeString": "uint96"
                    }
                  },
                  "functionReturnParameters": 30728,
                  "id": 30744,
                  "nodeType": "Return",
                  "src": "11328:20:167"
                }
              ]
            },
            "documentation": {
              "id": 30722,
              "nodeType": "StructuredDocumentation",
              "src": "10849:314:167",
              "text": " @dev Returns the downcasted uint96 from uint256, reverting on\n overflow (when the input is greater than largest uint96).\n Counterpart to Solidity's `uint96` operator.\n Requirements:\n - input must fit into 96 bits\n _Available since v4.2._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint96",
            "nameLocation": "11177:8:167",
            "parameters": {
              "id": 30725,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30724,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "11194:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30746,
                  "src": "11186:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30723,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "11186:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "11185:15:167"
            },
            "returnParameters": {
              "id": 30728,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30727,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30746,
                  "src": "11224:6:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint96",
                    "typeString": "uint96"
                  },
                  "typeName": {
                    "id": 30726,
                    "name": "uint96",
                    "nodeType": "ElementaryTypeName",
                    "src": "11224:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint96",
                      "typeString": "uint96"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "11223:8:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30771,
            "nodeType": "FunctionDefinition",
            "src": "11680:187:167",
            "nodes": [],
            "body": {
              "id": 30770,
              "nodeType": "Block",
              "src": "11744:123:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30761,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30755,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30749,
                          "src": "11762:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30758,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "11776:6:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint88_$",
                                  "typeString": "type(uint88)"
                                },
                                "typeName": {
                                  "id": 30757,
                                  "name": "uint88",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "11776:6:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint88_$",
                                  "typeString": "type(uint88)"
                                }
                              ],
                              "id": 30756,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "11771:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30759,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "11771:12:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint88",
                              "typeString": "type(uint88)"
                            }
                          },
                          "id": 30760,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "11771:16:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint88",
                            "typeString": "uint88"
                          }
                        },
                        "src": "11762:25:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2038382062697473",
                        "id": 30762,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "11789:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_ae080bd7a76a46f0a0caf00941bc2cdf6002799ca2813a3af7295019576d715d",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 88 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 88 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_ae080bd7a76a46f0a0caf00941bc2cdf6002799ca2813a3af7295019576d715d",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 88 bits\""
                        }
                      ],
                      "id": 30754,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "11754:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30763,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "11754:76:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30764,
                  "nodeType": "ExpressionStatement",
                  "src": "11754:76:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30767,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30749,
                        "src": "11854:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30766,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "11847:6:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint88_$",
                        "typeString": "type(uint88)"
                      },
                      "typeName": {
                        "id": 30765,
                        "name": "uint88",
                        "nodeType": "ElementaryTypeName",
                        "src": "11847:6:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30768,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "11847:13:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint88",
                      "typeString": "uint88"
                    }
                  },
                  "functionReturnParameters": 30753,
                  "id": 30769,
                  "nodeType": "Return",
                  "src": "11840:20:167"
                }
              ]
            },
            "documentation": {
              "id": 30747,
              "nodeType": "StructuredDocumentation",
              "src": "11361:314:167",
              "text": " @dev Returns the downcasted uint88 from uint256, reverting on\n overflow (when the input is greater than largest uint88).\n Counterpart to Solidity's `uint88` operator.\n Requirements:\n - input must fit into 88 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint88",
            "nameLocation": "11689:8:167",
            "parameters": {
              "id": 30750,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30749,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "11706:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30771,
                  "src": "11698:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30748,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "11698:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "11697:15:167"
            },
            "returnParameters": {
              "id": 30753,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30752,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30771,
                  "src": "11736:6:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint88",
                    "typeString": "uint88"
                  },
                  "typeName": {
                    "id": 30751,
                    "name": "uint88",
                    "nodeType": "ElementaryTypeName",
                    "src": "11736:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint88",
                      "typeString": "uint88"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "11735:8:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30796,
            "nodeType": "FunctionDefinition",
            "src": "12192:187:167",
            "nodes": [],
            "body": {
              "id": 30795,
              "nodeType": "Block",
              "src": "12256:123:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30786,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30780,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30774,
                          "src": "12274:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30783,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "12288:6:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint80_$",
                                  "typeString": "type(uint80)"
                                },
                                "typeName": {
                                  "id": 30782,
                                  "name": "uint80",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "12288:6:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint80_$",
                                  "typeString": "type(uint80)"
                                }
                              ],
                              "id": 30781,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "12283:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30784,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "12283:12:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint80",
                              "typeString": "type(uint80)"
                            }
                          },
                          "id": 30785,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "12283:16:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint80",
                            "typeString": "uint80"
                          }
                        },
                        "src": "12274:25:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2038302062697473",
                        "id": 30787,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "12301:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_3cba87c71fade7d3cd7b673c159aab98afc040a5369691a33559d905d20ab5d1",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 80 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 80 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_3cba87c71fade7d3cd7b673c159aab98afc040a5369691a33559d905d20ab5d1",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 80 bits\""
                        }
                      ],
                      "id": 30779,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "12266:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30788,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "12266:76:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30789,
                  "nodeType": "ExpressionStatement",
                  "src": "12266:76:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30792,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30774,
                        "src": "12366:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30791,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "12359:6:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint80_$",
                        "typeString": "type(uint80)"
                      },
                      "typeName": {
                        "id": 30790,
                        "name": "uint80",
                        "nodeType": "ElementaryTypeName",
                        "src": "12359:6:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30793,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "12359:13:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint80",
                      "typeString": "uint80"
                    }
                  },
                  "functionReturnParameters": 30778,
                  "id": 30794,
                  "nodeType": "Return",
                  "src": "12352:20:167"
                }
              ]
            },
            "documentation": {
              "id": 30772,
              "nodeType": "StructuredDocumentation",
              "src": "11873:314:167",
              "text": " @dev Returns the downcasted uint80 from uint256, reverting on\n overflow (when the input is greater than largest uint80).\n Counterpart to Solidity's `uint80` operator.\n Requirements:\n - input must fit into 80 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint80",
            "nameLocation": "12201:8:167",
            "parameters": {
              "id": 30775,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30774,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "12218:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30796,
                  "src": "12210:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30773,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "12210:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "12209:15:167"
            },
            "returnParameters": {
              "id": 30778,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30777,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30796,
                  "src": "12248:6:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint80",
                    "typeString": "uint80"
                  },
                  "typeName": {
                    "id": 30776,
                    "name": "uint80",
                    "nodeType": "ElementaryTypeName",
                    "src": "12248:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint80",
                      "typeString": "uint80"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "12247:8:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30821,
            "nodeType": "FunctionDefinition",
            "src": "12704:187:167",
            "nodes": [],
            "body": {
              "id": 30820,
              "nodeType": "Block",
              "src": "12768:123:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30811,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30805,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30799,
                          "src": "12786:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30808,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "12800:6:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint72_$",
                                  "typeString": "type(uint72)"
                                },
                                "typeName": {
                                  "id": 30807,
                                  "name": "uint72",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "12800:6:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint72_$",
                                  "typeString": "type(uint72)"
                                }
                              ],
                              "id": 30806,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "12795:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30809,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "12795:12:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint72",
                              "typeString": "type(uint72)"
                            }
                          },
                          "id": 30810,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "12795:16:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint72",
                            "typeString": "uint72"
                          }
                        },
                        "src": "12786:25:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2037322062697473",
                        "id": 30812,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "12813:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_71584237cc5250b8f417982144a947efe8f4c76feba008ff32ac480e69d60606",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 72 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 72 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_71584237cc5250b8f417982144a947efe8f4c76feba008ff32ac480e69d60606",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 72 bits\""
                        }
                      ],
                      "id": 30804,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "12778:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30813,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "12778:76:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30814,
                  "nodeType": "ExpressionStatement",
                  "src": "12778:76:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30817,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30799,
                        "src": "12878:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30816,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "12871:6:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint72_$",
                        "typeString": "type(uint72)"
                      },
                      "typeName": {
                        "id": 30815,
                        "name": "uint72",
                        "nodeType": "ElementaryTypeName",
                        "src": "12871:6:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30818,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "12871:13:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint72",
                      "typeString": "uint72"
                    }
                  },
                  "functionReturnParameters": 30803,
                  "id": 30819,
                  "nodeType": "Return",
                  "src": "12864:20:167"
                }
              ]
            },
            "documentation": {
              "id": 30797,
              "nodeType": "StructuredDocumentation",
              "src": "12385:314:167",
              "text": " @dev Returns the downcasted uint72 from uint256, reverting on\n overflow (when the input is greater than largest uint72).\n Counterpart to Solidity's `uint72` operator.\n Requirements:\n - input must fit into 72 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint72",
            "nameLocation": "12713:8:167",
            "parameters": {
              "id": 30800,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30799,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "12730:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30821,
                  "src": "12722:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30798,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "12722:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "12721:15:167"
            },
            "returnParameters": {
              "id": 30803,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30802,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30821,
                  "src": "12760:6:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint72",
                    "typeString": "uint72"
                  },
                  "typeName": {
                    "id": 30801,
                    "name": "uint72",
                    "nodeType": "ElementaryTypeName",
                    "src": "12760:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint72",
                      "typeString": "uint72"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "12759:8:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30846,
            "nodeType": "FunctionDefinition",
            "src": "13216:187:167",
            "nodes": [],
            "body": {
              "id": 30845,
              "nodeType": "Block",
              "src": "13280:123:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30836,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30830,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30824,
                          "src": "13298:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30833,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "13312:6:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint64_$",
                                  "typeString": "type(uint64)"
                                },
                                "typeName": {
                                  "id": 30832,
                                  "name": "uint64",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "13312:6:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint64_$",
                                  "typeString": "type(uint64)"
                                }
                              ],
                              "id": 30831,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "13307:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30834,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "13307:12:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint64",
                              "typeString": "type(uint64)"
                            }
                          },
                          "id": 30835,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "13307:16:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint64",
                            "typeString": "uint64"
                          }
                        },
                        "src": "13298:25:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2036342062697473",
                        "id": 30837,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "13325:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_93ae0c6bf6ffaece591a770b1865daa9f65157e541970aa9d8dc5f89a9490939",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 64 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 64 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_93ae0c6bf6ffaece591a770b1865daa9f65157e541970aa9d8dc5f89a9490939",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 64 bits\""
                        }
                      ],
                      "id": 30829,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "13290:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30838,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "13290:76:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30839,
                  "nodeType": "ExpressionStatement",
                  "src": "13290:76:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30842,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30824,
                        "src": "13390:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30841,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "13383:6:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint64_$",
                        "typeString": "type(uint64)"
                      },
                      "typeName": {
                        "id": 30840,
                        "name": "uint64",
                        "nodeType": "ElementaryTypeName",
                        "src": "13383:6:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30843,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "13383:13:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint64",
                      "typeString": "uint64"
                    }
                  },
                  "functionReturnParameters": 30828,
                  "id": 30844,
                  "nodeType": "Return",
                  "src": "13376:20:167"
                }
              ]
            },
            "documentation": {
              "id": 30822,
              "nodeType": "StructuredDocumentation",
              "src": "12897:314:167",
              "text": " @dev Returns the downcasted uint64 from uint256, reverting on\n overflow (when the input is greater than largest uint64).\n Counterpart to Solidity's `uint64` operator.\n Requirements:\n - input must fit into 64 bits\n _Available since v2.5._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint64",
            "nameLocation": "13225:8:167",
            "parameters": {
              "id": 30825,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30824,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "13242:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30846,
                  "src": "13234:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30823,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "13234:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "13233:15:167"
            },
            "returnParameters": {
              "id": 30828,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30827,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30846,
                  "src": "13272:6:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint64",
                    "typeString": "uint64"
                  },
                  "typeName": {
                    "id": 30826,
                    "name": "uint64",
                    "nodeType": "ElementaryTypeName",
                    "src": "13272:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint64",
                      "typeString": "uint64"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "13271:8:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30871,
            "nodeType": "FunctionDefinition",
            "src": "13728:187:167",
            "nodes": [],
            "body": {
              "id": 30870,
              "nodeType": "Block",
              "src": "13792:123:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30861,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30855,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30849,
                          "src": "13810:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30858,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "13824:6:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint56_$",
                                  "typeString": "type(uint56)"
                                },
                                "typeName": {
                                  "id": 30857,
                                  "name": "uint56",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "13824:6:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint56_$",
                                  "typeString": "type(uint56)"
                                }
                              ],
                              "id": 30856,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "13819:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30859,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "13819:12:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint56",
                              "typeString": "type(uint56)"
                            }
                          },
                          "id": 30860,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "13819:16:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint56",
                            "typeString": "uint56"
                          }
                        },
                        "src": "13810:25:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2035362062697473",
                        "id": 30862,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "13837:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_656ad93b5ff6665bfe05d97d51fad7c02ad79e6c43bef066c042a6900f450bc5",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 56 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 56 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_656ad93b5ff6665bfe05d97d51fad7c02ad79e6c43bef066c042a6900f450bc5",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 56 bits\""
                        }
                      ],
                      "id": 30854,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "13802:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30863,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "13802:76:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30864,
                  "nodeType": "ExpressionStatement",
                  "src": "13802:76:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30867,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30849,
                        "src": "13902:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30866,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "13895:6:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint56_$",
                        "typeString": "type(uint56)"
                      },
                      "typeName": {
                        "id": 30865,
                        "name": "uint56",
                        "nodeType": "ElementaryTypeName",
                        "src": "13895:6:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30868,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "13895:13:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint56",
                      "typeString": "uint56"
                    }
                  },
                  "functionReturnParameters": 30853,
                  "id": 30869,
                  "nodeType": "Return",
                  "src": "13888:20:167"
                }
              ]
            },
            "documentation": {
              "id": 30847,
              "nodeType": "StructuredDocumentation",
              "src": "13409:314:167",
              "text": " @dev Returns the downcasted uint56 from uint256, reverting on\n overflow (when the input is greater than largest uint56).\n Counterpart to Solidity's `uint56` operator.\n Requirements:\n - input must fit into 56 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint56",
            "nameLocation": "13737:8:167",
            "parameters": {
              "id": 30850,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30849,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "13754:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30871,
                  "src": "13746:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30848,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "13746:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "13745:15:167"
            },
            "returnParameters": {
              "id": 30853,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30852,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30871,
                  "src": "13784:6:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint56",
                    "typeString": "uint56"
                  },
                  "typeName": {
                    "id": 30851,
                    "name": "uint56",
                    "nodeType": "ElementaryTypeName",
                    "src": "13784:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint56",
                      "typeString": "uint56"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "13783:8:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30896,
            "nodeType": "FunctionDefinition",
            "src": "14240:187:167",
            "nodes": [],
            "body": {
              "id": 30895,
              "nodeType": "Block",
              "src": "14304:123:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30886,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30880,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30874,
                          "src": "14322:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30883,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "14336:6:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint48_$",
                                  "typeString": "type(uint48)"
                                },
                                "typeName": {
                                  "id": 30882,
                                  "name": "uint48",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "14336:6:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint48_$",
                                  "typeString": "type(uint48)"
                                }
                              ],
                              "id": 30881,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "14331:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30884,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "14331:12:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint48",
                              "typeString": "type(uint48)"
                            }
                          },
                          "id": 30885,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "14331:16:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint48",
                            "typeString": "uint48"
                          }
                        },
                        "src": "14322:25:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2034382062697473",
                        "id": 30887,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "14349:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_599034f9324dd4e988c6cea5a00a30f53147fec1b01559682f18cd840028f495",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 48 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 48 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_599034f9324dd4e988c6cea5a00a30f53147fec1b01559682f18cd840028f495",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 48 bits\""
                        }
                      ],
                      "id": 30879,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "14314:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30888,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14314:76:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30889,
                  "nodeType": "ExpressionStatement",
                  "src": "14314:76:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30892,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30874,
                        "src": "14414:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30891,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "14407:6:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint48_$",
                        "typeString": "type(uint48)"
                      },
                      "typeName": {
                        "id": 30890,
                        "name": "uint48",
                        "nodeType": "ElementaryTypeName",
                        "src": "14407:6:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30893,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14407:13:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint48",
                      "typeString": "uint48"
                    }
                  },
                  "functionReturnParameters": 30878,
                  "id": 30894,
                  "nodeType": "Return",
                  "src": "14400:20:167"
                }
              ]
            },
            "documentation": {
              "id": 30872,
              "nodeType": "StructuredDocumentation",
              "src": "13921:314:167",
              "text": " @dev Returns the downcasted uint48 from uint256, reverting on\n overflow (when the input is greater than largest uint48).\n Counterpart to Solidity's `uint48` operator.\n Requirements:\n - input must fit into 48 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint48",
            "nameLocation": "14249:8:167",
            "parameters": {
              "id": 30875,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30874,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "14266:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30896,
                  "src": "14258:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30873,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "14258:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "14257:15:167"
            },
            "returnParameters": {
              "id": 30878,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30877,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30896,
                  "src": "14296:6:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint48",
                    "typeString": "uint48"
                  },
                  "typeName": {
                    "id": 30876,
                    "name": "uint48",
                    "nodeType": "ElementaryTypeName",
                    "src": "14296:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint48",
                      "typeString": "uint48"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "14295:8:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30921,
            "nodeType": "FunctionDefinition",
            "src": "14752:187:167",
            "nodes": [],
            "body": {
              "id": 30920,
              "nodeType": "Block",
              "src": "14816:123:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30911,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30905,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30899,
                          "src": "14834:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30908,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "14848:6:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint40_$",
                                  "typeString": "type(uint40)"
                                },
                                "typeName": {
                                  "id": 30907,
                                  "name": "uint40",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "14848:6:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint40_$",
                                  "typeString": "type(uint40)"
                                }
                              ],
                              "id": 30906,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "14843:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30909,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "14843:12:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint40",
                              "typeString": "type(uint40)"
                            }
                          },
                          "id": 30910,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "14843:16:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint40",
                            "typeString": "uint40"
                          }
                        },
                        "src": "14834:25:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2034302062697473",
                        "id": 30912,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "14861:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_b23559c58b98a5d3ed7016699c7171ac8defa5a1d180f9a9ffa60468a5701d37",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 40 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 40 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_b23559c58b98a5d3ed7016699c7171ac8defa5a1d180f9a9ffa60468a5701d37",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 40 bits\""
                        }
                      ],
                      "id": 30904,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "14826:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30913,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14826:76:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30914,
                  "nodeType": "ExpressionStatement",
                  "src": "14826:76:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30917,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30899,
                        "src": "14926:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30916,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "14919:6:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint40_$",
                        "typeString": "type(uint40)"
                      },
                      "typeName": {
                        "id": 30915,
                        "name": "uint40",
                        "nodeType": "ElementaryTypeName",
                        "src": "14919:6:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30918,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "14919:13:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint40",
                      "typeString": "uint40"
                    }
                  },
                  "functionReturnParameters": 30903,
                  "id": 30919,
                  "nodeType": "Return",
                  "src": "14912:20:167"
                }
              ]
            },
            "documentation": {
              "id": 30897,
              "nodeType": "StructuredDocumentation",
              "src": "14433:314:167",
              "text": " @dev Returns the downcasted uint40 from uint256, reverting on\n overflow (when the input is greater than largest uint40).\n Counterpart to Solidity's `uint40` operator.\n Requirements:\n - input must fit into 40 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint40",
            "nameLocation": "14761:8:167",
            "parameters": {
              "id": 30900,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30899,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "14778:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30921,
                  "src": "14770:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30898,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "14770:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "14769:15:167"
            },
            "returnParameters": {
              "id": 30903,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30902,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30921,
                  "src": "14808:6:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint40",
                    "typeString": "uint40"
                  },
                  "typeName": {
                    "id": 30901,
                    "name": "uint40",
                    "nodeType": "ElementaryTypeName",
                    "src": "14808:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint40",
                      "typeString": "uint40"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "14807:8:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30946,
            "nodeType": "FunctionDefinition",
            "src": "15264:187:167",
            "nodes": [],
            "body": {
              "id": 30945,
              "nodeType": "Block",
              "src": "15328:123:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30936,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30930,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30924,
                          "src": "15346:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30933,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "15360:6:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint32_$",
                                  "typeString": "type(uint32)"
                                },
                                "typeName": {
                                  "id": 30932,
                                  "name": "uint32",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "15360:6:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint32_$",
                                  "typeString": "type(uint32)"
                                }
                              ],
                              "id": 30931,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "15355:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30934,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "15355:12:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint32",
                              "typeString": "type(uint32)"
                            }
                          },
                          "id": 30935,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "15355:16:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint32",
                            "typeString": "uint32"
                          }
                        },
                        "src": "15346:25:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2033322062697473",
                        "id": 30937,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "15373:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_c907489dafcfb622d3b83f2657a14d6da2f59e0de3116af0d6a80554c1a7cb19",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 32 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 32 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_c907489dafcfb622d3b83f2657a14d6da2f59e0de3116af0d6a80554c1a7cb19",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 32 bits\""
                        }
                      ],
                      "id": 30929,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "15338:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30938,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "15338:76:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30939,
                  "nodeType": "ExpressionStatement",
                  "src": "15338:76:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30942,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30924,
                        "src": "15438:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30941,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "15431:6:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint32_$",
                        "typeString": "type(uint32)"
                      },
                      "typeName": {
                        "id": 30940,
                        "name": "uint32",
                        "nodeType": "ElementaryTypeName",
                        "src": "15431:6:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30943,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "15431:13:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint32",
                      "typeString": "uint32"
                    }
                  },
                  "functionReturnParameters": 30928,
                  "id": 30944,
                  "nodeType": "Return",
                  "src": "15424:20:167"
                }
              ]
            },
            "documentation": {
              "id": 30922,
              "nodeType": "StructuredDocumentation",
              "src": "14945:314:167",
              "text": " @dev Returns the downcasted uint32 from uint256, reverting on\n overflow (when the input is greater than largest uint32).\n Counterpart to Solidity's `uint32` operator.\n Requirements:\n - input must fit into 32 bits\n _Available since v2.5._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint32",
            "nameLocation": "15273:8:167",
            "parameters": {
              "id": 30925,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30924,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "15290:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30946,
                  "src": "15282:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30923,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "15282:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "15281:15:167"
            },
            "returnParameters": {
              "id": 30928,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30927,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30946,
                  "src": "15320:6:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint32",
                    "typeString": "uint32"
                  },
                  "typeName": {
                    "id": 30926,
                    "name": "uint32",
                    "nodeType": "ElementaryTypeName",
                    "src": "15320:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint32",
                      "typeString": "uint32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "15319:8:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30971,
            "nodeType": "FunctionDefinition",
            "src": "15776:187:167",
            "nodes": [],
            "body": {
              "id": 30970,
              "nodeType": "Block",
              "src": "15840:123:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30961,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30955,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30949,
                          "src": "15858:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30958,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "15872:6:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint24_$",
                                  "typeString": "type(uint24)"
                                },
                                "typeName": {
                                  "id": 30957,
                                  "name": "uint24",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "15872:6:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint24_$",
                                  "typeString": "type(uint24)"
                                }
                              ],
                              "id": 30956,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "15867:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30959,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "15867:12:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint24",
                              "typeString": "type(uint24)"
                            }
                          },
                          "id": 30960,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "15867:16:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint24",
                            "typeString": "uint24"
                          }
                        },
                        "src": "15858:25:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2032342062697473",
                        "id": 30962,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "15885:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_f68b65aaf4574c34e9b9d1442d19636c6608b8c4dbd9331c7245f7915c8b2f55",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 24 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 24 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_f68b65aaf4574c34e9b9d1442d19636c6608b8c4dbd9331c7245f7915c8b2f55",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 24 bits\""
                        }
                      ],
                      "id": 30954,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "15850:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30963,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "15850:76:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30964,
                  "nodeType": "ExpressionStatement",
                  "src": "15850:76:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30967,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30949,
                        "src": "15950:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30966,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "15943:6:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint24_$",
                        "typeString": "type(uint24)"
                      },
                      "typeName": {
                        "id": 30965,
                        "name": "uint24",
                        "nodeType": "ElementaryTypeName",
                        "src": "15943:6:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30968,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "15943:13:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "functionReturnParameters": 30953,
                  "id": 30969,
                  "nodeType": "Return",
                  "src": "15936:20:167"
                }
              ]
            },
            "documentation": {
              "id": 30947,
              "nodeType": "StructuredDocumentation",
              "src": "15457:314:167",
              "text": " @dev Returns the downcasted uint24 from uint256, reverting on\n overflow (when the input is greater than largest uint24).\n Counterpart to Solidity's `uint24` operator.\n Requirements:\n - input must fit into 24 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint24",
            "nameLocation": "15785:8:167",
            "parameters": {
              "id": 30950,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30949,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "15802:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30971,
                  "src": "15794:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30948,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "15794:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "15793:15:167"
            },
            "returnParameters": {
              "id": 30953,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30952,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30971,
                  "src": "15832:6:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 30951,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "15832:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "15831:8:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 30996,
            "nodeType": "FunctionDefinition",
            "src": "16288:187:167",
            "nodes": [],
            "body": {
              "id": 30995,
              "nodeType": "Block",
              "src": "16352:123:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 30986,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 30980,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30974,
                          "src": "16370:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 30983,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "16384:6:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint16_$",
                                  "typeString": "type(uint16)"
                                },
                                "typeName": {
                                  "id": 30982,
                                  "name": "uint16",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "16384:6:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint16_$",
                                  "typeString": "type(uint16)"
                                }
                              ],
                              "id": 30981,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "16379:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 30984,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "16379:12:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint16",
                              "typeString": "type(uint16)"
                            }
                          },
                          "id": 30985,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "16379:16:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint16",
                            "typeString": "uint16"
                          }
                        },
                        "src": "16370:25:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2031362062697473",
                        "id": 30987,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "16397:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_13d3a66f9e0e5c92bbe7743bcd3bdb4695009d5f3a96e5ff49718d715b484033",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 16 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 16 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_13d3a66f9e0e5c92bbe7743bcd3bdb4695009d5f3a96e5ff49718d715b484033",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 16 bits\""
                        }
                      ],
                      "id": 30979,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "16362:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 30988,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "16362:76:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 30989,
                  "nodeType": "ExpressionStatement",
                  "src": "16362:76:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 30992,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30974,
                        "src": "16462:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 30991,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "16455:6:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint16_$",
                        "typeString": "type(uint16)"
                      },
                      "typeName": {
                        "id": 30990,
                        "name": "uint16",
                        "nodeType": "ElementaryTypeName",
                        "src": "16455:6:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 30993,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "16455:13:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint16",
                      "typeString": "uint16"
                    }
                  },
                  "functionReturnParameters": 30978,
                  "id": 30994,
                  "nodeType": "Return",
                  "src": "16448:20:167"
                }
              ]
            },
            "documentation": {
              "id": 30972,
              "nodeType": "StructuredDocumentation",
              "src": "15969:314:167",
              "text": " @dev Returns the downcasted uint16 from uint256, reverting on\n overflow (when the input is greater than largest uint16).\n Counterpart to Solidity's `uint16` operator.\n Requirements:\n - input must fit into 16 bits\n _Available since v2.5._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint16",
            "nameLocation": "16297:8:167",
            "parameters": {
              "id": 30975,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30974,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "16314:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 30996,
                  "src": "16306:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30973,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "16306:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "16305:15:167"
            },
            "returnParameters": {
              "id": 30978,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30977,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 30996,
                  "src": "16344:6:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint16",
                    "typeString": "uint16"
                  },
                  "typeName": {
                    "id": 30976,
                    "name": "uint16",
                    "nodeType": "ElementaryTypeName",
                    "src": "16344:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint16",
                      "typeString": "uint16"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "16343:8:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31021,
            "nodeType": "FunctionDefinition",
            "src": "16796:182:167",
            "nodes": [],
            "body": {
              "id": 31020,
              "nodeType": "Block",
              "src": "16858:120:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 31011,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31005,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 30999,
                          "src": "16876:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "expression": {
                            "arguments": [
                              {
                                "id": 31008,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "16890:5:167",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint8_$",
                                  "typeString": "type(uint8)"
                                },
                                "typeName": {
                                  "id": 31007,
                                  "name": "uint8",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "16890:5:167",
                                  "typeDescriptions": {}
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_type$_t_uint8_$",
                                  "typeString": "type(uint8)"
                                }
                              ],
                              "id": 31006,
                              "name": "type",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -27,
                              "src": "16885:4:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 31009,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "16885:11:167",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_meta_type_t_uint8",
                              "typeString": "type(uint8)"
                            }
                          },
                          "id": 31010,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "max",
                          "nodeType": "MemberAccess",
                          "src": "16885:15:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          }
                        },
                        "src": "16876:24:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e20382062697473",
                        "id": 31012,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "16902:39:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_2610961ba53259047cd57c60366c5ad0b8aabf5eb4132487619b736715a740d1",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 8 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 8 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_2610961ba53259047cd57c60366c5ad0b8aabf5eb4132487619b736715a740d1",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 8 bits\""
                        }
                      ],
                      "id": 31004,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "16868:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31013,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "16868:74:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31014,
                  "nodeType": "ExpressionStatement",
                  "src": "16868:74:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 31017,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 30999,
                        "src": "16965:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 31016,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "16959:5:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint8_$",
                        "typeString": "type(uint8)"
                      },
                      "typeName": {
                        "id": 31015,
                        "name": "uint8",
                        "nodeType": "ElementaryTypeName",
                        "src": "16959:5:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 31018,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "16959:12:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "functionReturnParameters": 31003,
                  "id": 31019,
                  "nodeType": "Return",
                  "src": "16952:19:167"
                }
              ]
            },
            "documentation": {
              "id": 30997,
              "nodeType": "StructuredDocumentation",
              "src": "16481:310:167",
              "text": " @dev Returns the downcasted uint8 from uint256, reverting on\n overflow (when the input is greater than largest uint8).\n Counterpart to Solidity's `uint8` operator.\n Requirements:\n - input must fit into 8 bits\n _Available since v2.5._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint8",
            "nameLocation": "16805:7:167",
            "parameters": {
              "id": 31000,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 30999,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "16821:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31021,
                  "src": "16813:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 30998,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "16813:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "16812:15:167"
            },
            "returnParameters": {
              "id": 31003,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31002,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 31021,
                  "src": "16851:5:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  },
                  "typeName": {
                    "id": 31001,
                    "name": "uint8",
                    "nodeType": "ElementaryTypeName",
                    "src": "16851:5:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "16850:7:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31042,
            "nodeType": "FunctionDefinition",
            "src": "17187:168:167",
            "nodes": [],
            "body": {
              "id": 31041,
              "nodeType": "Block",
              "src": "17252:103:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31032,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31030,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31024,
                          "src": "17270:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": ">=",
                        "rightExpression": {
                          "hexValue": "30",
                          "id": 31031,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "number",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "17279:1:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_rational_0_by_1",
                            "typeString": "int_const 0"
                          },
                          "value": "0"
                        },
                        "src": "17270:10:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c7565206d75737420626520706f736974697665",
                        "id": 31033,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "17282:34:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_74e6d3a4204092bea305532ded31d3763fc378e46be3884a93ceff08a0761807",
                          "typeString": "literal_string \"SafeCast: value must be positive\""
                        },
                        "value": "SafeCast: value must be positive"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_74e6d3a4204092bea305532ded31d3763fc378e46be3884a93ceff08a0761807",
                          "typeString": "literal_string \"SafeCast: value must be positive\""
                        }
                      ],
                      "id": 31029,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "17262:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31034,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "17262:55:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31035,
                  "nodeType": "ExpressionStatement",
                  "src": "17262:55:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 31038,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 31024,
                        "src": "17342:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        }
                      ],
                      "id": 31037,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "17334:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_uint256_$",
                        "typeString": "type(uint256)"
                      },
                      "typeName": {
                        "id": 31036,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "17334:7:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 31039,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "17334:14:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 31028,
                  "id": 31040,
                  "nodeType": "Return",
                  "src": "17327:21:167"
                }
              ]
            },
            "documentation": {
              "id": 31022,
              "nodeType": "StructuredDocumentation",
              "src": "16984:198:167",
              "text": " @dev Converts a signed int256 into an unsigned uint256.\n Requirements:\n - input must be greater than or equal to 0.\n _Available since v3.0._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toUint256",
            "nameLocation": "17196:9:167",
            "parameters": {
              "id": 31025,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31024,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "17213:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31042,
                  "src": "17206:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31023,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "17206:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "17205:14:167"
            },
            "returnParameters": {
              "id": 31028,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31027,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 31042,
                  "src": "17243:7:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 31026,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "17243:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "17242:9:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31065,
            "nodeType": "FunctionDefinition",
            "src": "17716:198:167",
            "nodes": [],
            "body": {
              "id": 31064,
              "nodeType": "Block",
              "src": "17790:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31055,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31050,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31048,
                      "src": "17800:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int248",
                        "typeString": "int248"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31053,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31045,
                          "src": "17820:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31052,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "17813:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int248_$",
                          "typeString": "type(int248)"
                        },
                        "typeName": {
                          "id": 31051,
                          "name": "int248",
                          "nodeType": "ElementaryTypeName",
                          "src": "17813:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31054,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "17813:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int248",
                        "typeString": "int248"
                      }
                    },
                    "src": "17800:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int248",
                      "typeString": "int248"
                    }
                  },
                  "id": 31056,
                  "nodeType": "ExpressionStatement",
                  "src": "17800:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31060,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31058,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31048,
                          "src": "17844:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int248",
                            "typeString": "int248"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31059,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31045,
                          "src": "17858:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "17844:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203234382062697473",
                        "id": 31061,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "17865:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_6ac19bba4607c9b45ff35f54fbc4ca64c29c7457109a16fa180ea77cdbda8593",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 248 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 248 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_6ac19bba4607c9b45ff35f54fbc4ca64c29c7457109a16fa180ea77cdbda8593",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 248 bits\""
                        }
                      ],
                      "id": 31057,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "17836:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31062,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "17836:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31063,
                  "nodeType": "ExpressionStatement",
                  "src": "17836:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31043,
              "nodeType": "StructuredDocumentation",
              "src": "17361:350:167",
              "text": " @dev Returns the downcasted int248 from int256, reverting on\n overflow (when the input is less than smallest int248 or\n greater than largest int248).\n Counterpart to Solidity's `int248` operator.\n Requirements:\n - input must fit into 248 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt248",
            "nameLocation": "17725:8:167",
            "parameters": {
              "id": 31046,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31045,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "17741:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31065,
                  "src": "17734:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31044,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "17734:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "17733:14:167"
            },
            "returnParameters": {
              "id": 31049,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31048,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "17778:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31065,
                  "src": "17771:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int248",
                    "typeString": "int248"
                  },
                  "typeName": {
                    "id": 31047,
                    "name": "int248",
                    "nodeType": "ElementaryTypeName",
                    "src": "17771:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int248",
                      "typeString": "int248"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "17770:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31088,
            "nodeType": "FunctionDefinition",
            "src": "18275:198:167",
            "nodes": [],
            "body": {
              "id": 31087,
              "nodeType": "Block",
              "src": "18349:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31078,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31073,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31071,
                      "src": "18359:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int240",
                        "typeString": "int240"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31076,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31068,
                          "src": "18379:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31075,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "18372:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int240_$",
                          "typeString": "type(int240)"
                        },
                        "typeName": {
                          "id": 31074,
                          "name": "int240",
                          "nodeType": "ElementaryTypeName",
                          "src": "18372:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31077,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "18372:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int240",
                        "typeString": "int240"
                      }
                    },
                    "src": "18359:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int240",
                      "typeString": "int240"
                    }
                  },
                  "id": 31079,
                  "nodeType": "ExpressionStatement",
                  "src": "18359:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31083,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31081,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31071,
                          "src": "18403:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int240",
                            "typeString": "int240"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31082,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31068,
                          "src": "18417:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "18403:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203234302062697473",
                        "id": 31084,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "18424:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_375fa0f6cb9fb5845d214c630920cedf4424913ed6dc32c297d430efa3d61a87",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 240 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 240 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_375fa0f6cb9fb5845d214c630920cedf4424913ed6dc32c297d430efa3d61a87",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 240 bits\""
                        }
                      ],
                      "id": 31080,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "18395:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31085,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "18395:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31086,
                  "nodeType": "ExpressionStatement",
                  "src": "18395:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31066,
              "nodeType": "StructuredDocumentation",
              "src": "17920:350:167",
              "text": " @dev Returns the downcasted int240 from int256, reverting on\n overflow (when the input is less than smallest int240 or\n greater than largest int240).\n Counterpart to Solidity's `int240` operator.\n Requirements:\n - input must fit into 240 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt240",
            "nameLocation": "18284:8:167",
            "parameters": {
              "id": 31069,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31068,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "18300:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31088,
                  "src": "18293:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31067,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "18293:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "18292:14:167"
            },
            "returnParameters": {
              "id": 31072,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31071,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "18337:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31088,
                  "src": "18330:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int240",
                    "typeString": "int240"
                  },
                  "typeName": {
                    "id": 31070,
                    "name": "int240",
                    "nodeType": "ElementaryTypeName",
                    "src": "18330:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int240",
                      "typeString": "int240"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "18329:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31111,
            "nodeType": "FunctionDefinition",
            "src": "18834:198:167",
            "nodes": [],
            "body": {
              "id": 31110,
              "nodeType": "Block",
              "src": "18908:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31101,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31096,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31094,
                      "src": "18918:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int232",
                        "typeString": "int232"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31099,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31091,
                          "src": "18938:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31098,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "18931:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int232_$",
                          "typeString": "type(int232)"
                        },
                        "typeName": {
                          "id": 31097,
                          "name": "int232",
                          "nodeType": "ElementaryTypeName",
                          "src": "18931:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31100,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "18931:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int232",
                        "typeString": "int232"
                      }
                    },
                    "src": "18918:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int232",
                      "typeString": "int232"
                    }
                  },
                  "id": 31102,
                  "nodeType": "ExpressionStatement",
                  "src": "18918:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31106,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31104,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31094,
                          "src": "18962:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int232",
                            "typeString": "int232"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31105,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31091,
                          "src": "18976:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "18962:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203233322062697473",
                        "id": 31107,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "18983:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_5797fb2c4589bd6a92752ce0eacaac67341e37ab28c96c2284ab897e7ac77957",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 232 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 232 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_5797fb2c4589bd6a92752ce0eacaac67341e37ab28c96c2284ab897e7ac77957",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 232 bits\""
                        }
                      ],
                      "id": 31103,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "18954:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31108,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "18954:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31109,
                  "nodeType": "ExpressionStatement",
                  "src": "18954:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31089,
              "nodeType": "StructuredDocumentation",
              "src": "18479:350:167",
              "text": " @dev Returns the downcasted int232 from int256, reverting on\n overflow (when the input is less than smallest int232 or\n greater than largest int232).\n Counterpart to Solidity's `int232` operator.\n Requirements:\n - input must fit into 232 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt232",
            "nameLocation": "18843:8:167",
            "parameters": {
              "id": 31092,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31091,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "18859:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31111,
                  "src": "18852:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31090,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "18852:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "18851:14:167"
            },
            "returnParameters": {
              "id": 31095,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31094,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "18896:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31111,
                  "src": "18889:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int232",
                    "typeString": "int232"
                  },
                  "typeName": {
                    "id": 31093,
                    "name": "int232",
                    "nodeType": "ElementaryTypeName",
                    "src": "18889:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int232",
                      "typeString": "int232"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "18888:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31134,
            "nodeType": "FunctionDefinition",
            "src": "19393:198:167",
            "nodes": [],
            "body": {
              "id": 31133,
              "nodeType": "Block",
              "src": "19467:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31124,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31119,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31117,
                      "src": "19477:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int224",
                        "typeString": "int224"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31122,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31114,
                          "src": "19497:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31121,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "19490:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int224_$",
                          "typeString": "type(int224)"
                        },
                        "typeName": {
                          "id": 31120,
                          "name": "int224",
                          "nodeType": "ElementaryTypeName",
                          "src": "19490:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31123,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "19490:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int224",
                        "typeString": "int224"
                      }
                    },
                    "src": "19477:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int224",
                      "typeString": "int224"
                    }
                  },
                  "id": 31125,
                  "nodeType": "ExpressionStatement",
                  "src": "19477:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31129,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31127,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31117,
                          "src": "19521:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int224",
                            "typeString": "int224"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31128,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31114,
                          "src": "19535:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "19521:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203232342062697473",
                        "id": 31130,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "19542:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_9d2acf551b2466898443b9bc3a403a4d86037386bc5a8960c1bbb0f204e69b79",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 224 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 224 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_9d2acf551b2466898443b9bc3a403a4d86037386bc5a8960c1bbb0f204e69b79",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 224 bits\""
                        }
                      ],
                      "id": 31126,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "19513:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31131,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "19513:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31132,
                  "nodeType": "ExpressionStatement",
                  "src": "19513:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31112,
              "nodeType": "StructuredDocumentation",
              "src": "19038:350:167",
              "text": " @dev Returns the downcasted int224 from int256, reverting on\n overflow (when the input is less than smallest int224 or\n greater than largest int224).\n Counterpart to Solidity's `int224` operator.\n Requirements:\n - input must fit into 224 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt224",
            "nameLocation": "19402:8:167",
            "parameters": {
              "id": 31115,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31114,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "19418:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31134,
                  "src": "19411:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31113,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "19411:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "19410:14:167"
            },
            "returnParameters": {
              "id": 31118,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31117,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "19455:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31134,
                  "src": "19448:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int224",
                    "typeString": "int224"
                  },
                  "typeName": {
                    "id": 31116,
                    "name": "int224",
                    "nodeType": "ElementaryTypeName",
                    "src": "19448:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int224",
                      "typeString": "int224"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "19447:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31157,
            "nodeType": "FunctionDefinition",
            "src": "19952:198:167",
            "nodes": [],
            "body": {
              "id": 31156,
              "nodeType": "Block",
              "src": "20026:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31147,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31142,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31140,
                      "src": "20036:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int216",
                        "typeString": "int216"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31145,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31137,
                          "src": "20056:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31144,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "20049:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int216_$",
                          "typeString": "type(int216)"
                        },
                        "typeName": {
                          "id": 31143,
                          "name": "int216",
                          "nodeType": "ElementaryTypeName",
                          "src": "20049:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31146,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "20049:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int216",
                        "typeString": "int216"
                      }
                    },
                    "src": "20036:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int216",
                      "typeString": "int216"
                    }
                  },
                  "id": 31148,
                  "nodeType": "ExpressionStatement",
                  "src": "20036:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31152,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31150,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31140,
                          "src": "20080:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int216",
                            "typeString": "int216"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31151,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31137,
                          "src": "20094:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "20080:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203231362062697473",
                        "id": 31153,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "20101:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_8966adc0aad8dc91b207c69c3eb4937e498af8cc706cfe7edd55f3a6ea53488d",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 216 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 216 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_8966adc0aad8dc91b207c69c3eb4937e498af8cc706cfe7edd55f3a6ea53488d",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 216 bits\""
                        }
                      ],
                      "id": 31149,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "20072:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31154,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "20072:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31155,
                  "nodeType": "ExpressionStatement",
                  "src": "20072:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31135,
              "nodeType": "StructuredDocumentation",
              "src": "19597:350:167",
              "text": " @dev Returns the downcasted int216 from int256, reverting on\n overflow (when the input is less than smallest int216 or\n greater than largest int216).\n Counterpart to Solidity's `int216` operator.\n Requirements:\n - input must fit into 216 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt216",
            "nameLocation": "19961:8:167",
            "parameters": {
              "id": 31138,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31137,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "19977:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31157,
                  "src": "19970:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31136,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "19970:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "19969:14:167"
            },
            "returnParameters": {
              "id": 31141,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31140,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "20014:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31157,
                  "src": "20007:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int216",
                    "typeString": "int216"
                  },
                  "typeName": {
                    "id": 31139,
                    "name": "int216",
                    "nodeType": "ElementaryTypeName",
                    "src": "20007:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int216",
                      "typeString": "int216"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "20006:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31180,
            "nodeType": "FunctionDefinition",
            "src": "20511:198:167",
            "nodes": [],
            "body": {
              "id": 31179,
              "nodeType": "Block",
              "src": "20585:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31170,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31165,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31163,
                      "src": "20595:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int208",
                        "typeString": "int208"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31168,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31160,
                          "src": "20615:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31167,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "20608:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int208_$",
                          "typeString": "type(int208)"
                        },
                        "typeName": {
                          "id": 31166,
                          "name": "int208",
                          "nodeType": "ElementaryTypeName",
                          "src": "20608:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31169,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "20608:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int208",
                        "typeString": "int208"
                      }
                    },
                    "src": "20595:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int208",
                      "typeString": "int208"
                    }
                  },
                  "id": 31171,
                  "nodeType": "ExpressionStatement",
                  "src": "20595:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31175,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31173,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31163,
                          "src": "20639:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int208",
                            "typeString": "int208"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31174,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31160,
                          "src": "20653:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "20639:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203230382062697473",
                        "id": 31176,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "20660:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_43d81217fa633fa1c6e88855de94fb990f5831ac266b0a90afa660e986ab5e23",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 208 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 208 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_43d81217fa633fa1c6e88855de94fb990f5831ac266b0a90afa660e986ab5e23",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 208 bits\""
                        }
                      ],
                      "id": 31172,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "20631:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31177,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "20631:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31178,
                  "nodeType": "ExpressionStatement",
                  "src": "20631:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31158,
              "nodeType": "StructuredDocumentation",
              "src": "20156:350:167",
              "text": " @dev Returns the downcasted int208 from int256, reverting on\n overflow (when the input is less than smallest int208 or\n greater than largest int208).\n Counterpart to Solidity's `int208` operator.\n Requirements:\n - input must fit into 208 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt208",
            "nameLocation": "20520:8:167",
            "parameters": {
              "id": 31161,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31160,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "20536:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31180,
                  "src": "20529:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31159,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "20529:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "20528:14:167"
            },
            "returnParameters": {
              "id": 31164,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31163,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "20573:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31180,
                  "src": "20566:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int208",
                    "typeString": "int208"
                  },
                  "typeName": {
                    "id": 31162,
                    "name": "int208",
                    "nodeType": "ElementaryTypeName",
                    "src": "20566:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int208",
                      "typeString": "int208"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "20565:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31203,
            "nodeType": "FunctionDefinition",
            "src": "21070:198:167",
            "nodes": [],
            "body": {
              "id": 31202,
              "nodeType": "Block",
              "src": "21144:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31193,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31188,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31186,
                      "src": "21154:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int200",
                        "typeString": "int200"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31191,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31183,
                          "src": "21174:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31190,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "21167:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int200_$",
                          "typeString": "type(int200)"
                        },
                        "typeName": {
                          "id": 31189,
                          "name": "int200",
                          "nodeType": "ElementaryTypeName",
                          "src": "21167:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31192,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "21167:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int200",
                        "typeString": "int200"
                      }
                    },
                    "src": "21154:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int200",
                      "typeString": "int200"
                    }
                  },
                  "id": 31194,
                  "nodeType": "ExpressionStatement",
                  "src": "21154:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31198,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31196,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31186,
                          "src": "21198:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int200",
                            "typeString": "int200"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31197,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31183,
                          "src": "21212:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "21198:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203230302062697473",
                        "id": 31199,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "21219:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_df8130f294fe2698967ea9ead82c4da9454490567d976d00551e0174e655314c",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 200 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 200 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_df8130f294fe2698967ea9ead82c4da9454490567d976d00551e0174e655314c",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 200 bits\""
                        }
                      ],
                      "id": 31195,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "21190:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31200,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "21190:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31201,
                  "nodeType": "ExpressionStatement",
                  "src": "21190:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31181,
              "nodeType": "StructuredDocumentation",
              "src": "20715:350:167",
              "text": " @dev Returns the downcasted int200 from int256, reverting on\n overflow (when the input is less than smallest int200 or\n greater than largest int200).\n Counterpart to Solidity's `int200` operator.\n Requirements:\n - input must fit into 200 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt200",
            "nameLocation": "21079:8:167",
            "parameters": {
              "id": 31184,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31183,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "21095:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31203,
                  "src": "21088:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31182,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "21088:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "21087:14:167"
            },
            "returnParameters": {
              "id": 31187,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31186,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "21132:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31203,
                  "src": "21125:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int200",
                    "typeString": "int200"
                  },
                  "typeName": {
                    "id": 31185,
                    "name": "int200",
                    "nodeType": "ElementaryTypeName",
                    "src": "21125:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int200",
                      "typeString": "int200"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "21124:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31226,
            "nodeType": "FunctionDefinition",
            "src": "21629:198:167",
            "nodes": [],
            "body": {
              "id": 31225,
              "nodeType": "Block",
              "src": "21703:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31216,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31211,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31209,
                      "src": "21713:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int192",
                        "typeString": "int192"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31214,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31206,
                          "src": "21733:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31213,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "21726:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int192_$",
                          "typeString": "type(int192)"
                        },
                        "typeName": {
                          "id": 31212,
                          "name": "int192",
                          "nodeType": "ElementaryTypeName",
                          "src": "21726:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31215,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "21726:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int192",
                        "typeString": "int192"
                      }
                    },
                    "src": "21713:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int192",
                      "typeString": "int192"
                    }
                  },
                  "id": 31217,
                  "nodeType": "ExpressionStatement",
                  "src": "21713:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31221,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31219,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31209,
                          "src": "21757:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int192",
                            "typeString": "int192"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31220,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31206,
                          "src": "21771:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "21757:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203139322062697473",
                        "id": 31222,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "21778:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_112978800f12a1c4f1eab82789f7b6defd49dc1c17ba270a84ffc28392fb05ae",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 192 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 192 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_112978800f12a1c4f1eab82789f7b6defd49dc1c17ba270a84ffc28392fb05ae",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 192 bits\""
                        }
                      ],
                      "id": 31218,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "21749:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31223,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "21749:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31224,
                  "nodeType": "ExpressionStatement",
                  "src": "21749:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31204,
              "nodeType": "StructuredDocumentation",
              "src": "21274:350:167",
              "text": " @dev Returns the downcasted int192 from int256, reverting on\n overflow (when the input is less than smallest int192 or\n greater than largest int192).\n Counterpart to Solidity's `int192` operator.\n Requirements:\n - input must fit into 192 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt192",
            "nameLocation": "21638:8:167",
            "parameters": {
              "id": 31207,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31206,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "21654:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31226,
                  "src": "21647:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31205,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "21647:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "21646:14:167"
            },
            "returnParameters": {
              "id": 31210,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31209,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "21691:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31226,
                  "src": "21684:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int192",
                    "typeString": "int192"
                  },
                  "typeName": {
                    "id": 31208,
                    "name": "int192",
                    "nodeType": "ElementaryTypeName",
                    "src": "21684:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int192",
                      "typeString": "int192"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "21683:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31249,
            "nodeType": "FunctionDefinition",
            "src": "22188:198:167",
            "nodes": [],
            "body": {
              "id": 31248,
              "nodeType": "Block",
              "src": "22262:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31239,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31234,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31232,
                      "src": "22272:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int184",
                        "typeString": "int184"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31237,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31229,
                          "src": "22292:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31236,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "22285:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int184_$",
                          "typeString": "type(int184)"
                        },
                        "typeName": {
                          "id": 31235,
                          "name": "int184",
                          "nodeType": "ElementaryTypeName",
                          "src": "22285:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31238,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "22285:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int184",
                        "typeString": "int184"
                      }
                    },
                    "src": "22272:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int184",
                      "typeString": "int184"
                    }
                  },
                  "id": 31240,
                  "nodeType": "ExpressionStatement",
                  "src": "22272:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31244,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31242,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31232,
                          "src": "22316:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int184",
                            "typeString": "int184"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31243,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31229,
                          "src": "22330:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "22316:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203138342062697473",
                        "id": 31245,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "22337:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_86c53d89b1944d561ecfa42e859033241d1df6ea8d42a57ae02f79d45de4aa75",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 184 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 184 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_86c53d89b1944d561ecfa42e859033241d1df6ea8d42a57ae02f79d45de4aa75",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 184 bits\""
                        }
                      ],
                      "id": 31241,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "22308:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31246,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "22308:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31247,
                  "nodeType": "ExpressionStatement",
                  "src": "22308:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31227,
              "nodeType": "StructuredDocumentation",
              "src": "21833:350:167",
              "text": " @dev Returns the downcasted int184 from int256, reverting on\n overflow (when the input is less than smallest int184 or\n greater than largest int184).\n Counterpart to Solidity's `int184` operator.\n Requirements:\n - input must fit into 184 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt184",
            "nameLocation": "22197:8:167",
            "parameters": {
              "id": 31230,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31229,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "22213:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31249,
                  "src": "22206:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31228,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "22206:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "22205:14:167"
            },
            "returnParameters": {
              "id": 31233,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31232,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "22250:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31249,
                  "src": "22243:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int184",
                    "typeString": "int184"
                  },
                  "typeName": {
                    "id": 31231,
                    "name": "int184",
                    "nodeType": "ElementaryTypeName",
                    "src": "22243:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int184",
                      "typeString": "int184"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "22242:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31272,
            "nodeType": "FunctionDefinition",
            "src": "22747:198:167",
            "nodes": [],
            "body": {
              "id": 31271,
              "nodeType": "Block",
              "src": "22821:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31262,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31257,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31255,
                      "src": "22831:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int176",
                        "typeString": "int176"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31260,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31252,
                          "src": "22851:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31259,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "22844:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int176_$",
                          "typeString": "type(int176)"
                        },
                        "typeName": {
                          "id": 31258,
                          "name": "int176",
                          "nodeType": "ElementaryTypeName",
                          "src": "22844:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31261,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "22844:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int176",
                        "typeString": "int176"
                      }
                    },
                    "src": "22831:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int176",
                      "typeString": "int176"
                    }
                  },
                  "id": 31263,
                  "nodeType": "ExpressionStatement",
                  "src": "22831:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31267,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31265,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31255,
                          "src": "22875:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int176",
                            "typeString": "int176"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31266,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31252,
                          "src": "22889:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "22875:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203137362062697473",
                        "id": 31268,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "22896:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_4069e970f734339c7841e84a1b26f503bff22b76884c1168dc24e2e6af9b1e30",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 176 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 176 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_4069e970f734339c7841e84a1b26f503bff22b76884c1168dc24e2e6af9b1e30",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 176 bits\""
                        }
                      ],
                      "id": 31264,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "22867:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31269,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "22867:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31270,
                  "nodeType": "ExpressionStatement",
                  "src": "22867:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31250,
              "nodeType": "StructuredDocumentation",
              "src": "22392:350:167",
              "text": " @dev Returns the downcasted int176 from int256, reverting on\n overflow (when the input is less than smallest int176 or\n greater than largest int176).\n Counterpart to Solidity's `int176` operator.\n Requirements:\n - input must fit into 176 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt176",
            "nameLocation": "22756:8:167",
            "parameters": {
              "id": 31253,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31252,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "22772:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31272,
                  "src": "22765:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31251,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "22765:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "22764:14:167"
            },
            "returnParameters": {
              "id": 31256,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31255,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "22809:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31272,
                  "src": "22802:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int176",
                    "typeString": "int176"
                  },
                  "typeName": {
                    "id": 31254,
                    "name": "int176",
                    "nodeType": "ElementaryTypeName",
                    "src": "22802:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int176",
                      "typeString": "int176"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "22801:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31295,
            "nodeType": "FunctionDefinition",
            "src": "23306:198:167",
            "nodes": [],
            "body": {
              "id": 31294,
              "nodeType": "Block",
              "src": "23380:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31285,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31280,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31278,
                      "src": "23390:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int168",
                        "typeString": "int168"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31283,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31275,
                          "src": "23410:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31282,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "23403:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int168_$",
                          "typeString": "type(int168)"
                        },
                        "typeName": {
                          "id": 31281,
                          "name": "int168",
                          "nodeType": "ElementaryTypeName",
                          "src": "23403:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31284,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "23403:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int168",
                        "typeString": "int168"
                      }
                    },
                    "src": "23390:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int168",
                      "typeString": "int168"
                    }
                  },
                  "id": 31286,
                  "nodeType": "ExpressionStatement",
                  "src": "23390:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31290,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31288,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31278,
                          "src": "23434:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int168",
                            "typeString": "int168"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31289,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31275,
                          "src": "23448:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "23434:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203136382062697473",
                        "id": 31291,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "23455:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_67ef32a3cbe7b34392347d335b0a7ae95c74a34ca40e4efb58f6c9a3154e85a1",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 168 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 168 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_67ef32a3cbe7b34392347d335b0a7ae95c74a34ca40e4efb58f6c9a3154e85a1",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 168 bits\""
                        }
                      ],
                      "id": 31287,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "23426:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31292,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "23426:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31293,
                  "nodeType": "ExpressionStatement",
                  "src": "23426:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31273,
              "nodeType": "StructuredDocumentation",
              "src": "22951:350:167",
              "text": " @dev Returns the downcasted int168 from int256, reverting on\n overflow (when the input is less than smallest int168 or\n greater than largest int168).\n Counterpart to Solidity's `int168` operator.\n Requirements:\n - input must fit into 168 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt168",
            "nameLocation": "23315:8:167",
            "parameters": {
              "id": 31276,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31275,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "23331:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31295,
                  "src": "23324:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31274,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "23324:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "23323:14:167"
            },
            "returnParameters": {
              "id": 31279,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31278,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "23368:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31295,
                  "src": "23361:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int168",
                    "typeString": "int168"
                  },
                  "typeName": {
                    "id": 31277,
                    "name": "int168",
                    "nodeType": "ElementaryTypeName",
                    "src": "23361:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int168",
                      "typeString": "int168"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "23360:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31318,
            "nodeType": "FunctionDefinition",
            "src": "23865:198:167",
            "nodes": [],
            "body": {
              "id": 31317,
              "nodeType": "Block",
              "src": "23939:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31308,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31303,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31301,
                      "src": "23949:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int160",
                        "typeString": "int160"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31306,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31298,
                          "src": "23969:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31305,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "23962:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int160_$",
                          "typeString": "type(int160)"
                        },
                        "typeName": {
                          "id": 31304,
                          "name": "int160",
                          "nodeType": "ElementaryTypeName",
                          "src": "23962:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31307,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "23962:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int160",
                        "typeString": "int160"
                      }
                    },
                    "src": "23949:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int160",
                      "typeString": "int160"
                    }
                  },
                  "id": 31309,
                  "nodeType": "ExpressionStatement",
                  "src": "23949:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31313,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31311,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31301,
                          "src": "23993:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int160",
                            "typeString": "int160"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31312,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31298,
                          "src": "24007:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "23993:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203136302062697473",
                        "id": 31314,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "24014:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_976ecce9083debfe29d3a99b955facf24b8725f1b964d1a5bb4197ffcd60ab9d",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 160 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 160 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_976ecce9083debfe29d3a99b955facf24b8725f1b964d1a5bb4197ffcd60ab9d",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 160 bits\""
                        }
                      ],
                      "id": 31310,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "23985:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31315,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "23985:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31316,
                  "nodeType": "ExpressionStatement",
                  "src": "23985:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31296,
              "nodeType": "StructuredDocumentation",
              "src": "23510:350:167",
              "text": " @dev Returns the downcasted int160 from int256, reverting on\n overflow (when the input is less than smallest int160 or\n greater than largest int160).\n Counterpart to Solidity's `int160` operator.\n Requirements:\n - input must fit into 160 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt160",
            "nameLocation": "23874:8:167",
            "parameters": {
              "id": 31299,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31298,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "23890:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31318,
                  "src": "23883:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31297,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "23883:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "23882:14:167"
            },
            "returnParameters": {
              "id": 31302,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31301,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "23927:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31318,
                  "src": "23920:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int160",
                    "typeString": "int160"
                  },
                  "typeName": {
                    "id": 31300,
                    "name": "int160",
                    "nodeType": "ElementaryTypeName",
                    "src": "23920:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int160",
                      "typeString": "int160"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "23919:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31341,
            "nodeType": "FunctionDefinition",
            "src": "24424:198:167",
            "nodes": [],
            "body": {
              "id": 31340,
              "nodeType": "Block",
              "src": "24498:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31331,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31326,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31324,
                      "src": "24508:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int152",
                        "typeString": "int152"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31329,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31321,
                          "src": "24528:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31328,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "24521:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int152_$",
                          "typeString": "type(int152)"
                        },
                        "typeName": {
                          "id": 31327,
                          "name": "int152",
                          "nodeType": "ElementaryTypeName",
                          "src": "24521:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31330,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "24521:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int152",
                        "typeString": "int152"
                      }
                    },
                    "src": "24508:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int152",
                      "typeString": "int152"
                    }
                  },
                  "id": 31332,
                  "nodeType": "ExpressionStatement",
                  "src": "24508:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31336,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31334,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31324,
                          "src": "24552:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int152",
                            "typeString": "int152"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31335,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31321,
                          "src": "24566:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "24552:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203135322062697473",
                        "id": 31337,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "24573:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_211cad43a2caf5f01e34af51190b8a7b6f3d9c195bd25586ea12242191b97831",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 152 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 152 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_211cad43a2caf5f01e34af51190b8a7b6f3d9c195bd25586ea12242191b97831",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 152 bits\""
                        }
                      ],
                      "id": 31333,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "24544:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31338,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "24544:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31339,
                  "nodeType": "ExpressionStatement",
                  "src": "24544:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31319,
              "nodeType": "StructuredDocumentation",
              "src": "24069:350:167",
              "text": " @dev Returns the downcasted int152 from int256, reverting on\n overflow (when the input is less than smallest int152 or\n greater than largest int152).\n Counterpart to Solidity's `int152` operator.\n Requirements:\n - input must fit into 152 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt152",
            "nameLocation": "24433:8:167",
            "parameters": {
              "id": 31322,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31321,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "24449:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31341,
                  "src": "24442:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31320,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "24442:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "24441:14:167"
            },
            "returnParameters": {
              "id": 31325,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31324,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "24486:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31341,
                  "src": "24479:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int152",
                    "typeString": "int152"
                  },
                  "typeName": {
                    "id": 31323,
                    "name": "int152",
                    "nodeType": "ElementaryTypeName",
                    "src": "24479:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int152",
                      "typeString": "int152"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "24478:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31364,
            "nodeType": "FunctionDefinition",
            "src": "24983:198:167",
            "nodes": [],
            "body": {
              "id": 31363,
              "nodeType": "Block",
              "src": "25057:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31354,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31349,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31347,
                      "src": "25067:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int144",
                        "typeString": "int144"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31352,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31344,
                          "src": "25087:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31351,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "25080:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int144_$",
                          "typeString": "type(int144)"
                        },
                        "typeName": {
                          "id": 31350,
                          "name": "int144",
                          "nodeType": "ElementaryTypeName",
                          "src": "25080:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31353,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "25080:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int144",
                        "typeString": "int144"
                      }
                    },
                    "src": "25067:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int144",
                      "typeString": "int144"
                    }
                  },
                  "id": 31355,
                  "nodeType": "ExpressionStatement",
                  "src": "25067:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31359,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31357,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31347,
                          "src": "25111:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int144",
                            "typeString": "int144"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31358,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31344,
                          "src": "25125:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "25111:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203134342062697473",
                        "id": 31360,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "25132:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_17d8c5a6d3b2fd2517ba2e4a2ac70a3367cd362448f8338aaa6edf8bfd812bab",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 144 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 144 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_17d8c5a6d3b2fd2517ba2e4a2ac70a3367cd362448f8338aaa6edf8bfd812bab",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 144 bits\""
                        }
                      ],
                      "id": 31356,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "25103:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31361,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "25103:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31362,
                  "nodeType": "ExpressionStatement",
                  "src": "25103:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31342,
              "nodeType": "StructuredDocumentation",
              "src": "24628:350:167",
              "text": " @dev Returns the downcasted int144 from int256, reverting on\n overflow (when the input is less than smallest int144 or\n greater than largest int144).\n Counterpart to Solidity's `int144` operator.\n Requirements:\n - input must fit into 144 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt144",
            "nameLocation": "24992:8:167",
            "parameters": {
              "id": 31345,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31344,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "25008:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31364,
                  "src": "25001:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31343,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "25001:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "25000:14:167"
            },
            "returnParameters": {
              "id": 31348,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31347,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "25045:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31364,
                  "src": "25038:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int144",
                    "typeString": "int144"
                  },
                  "typeName": {
                    "id": 31346,
                    "name": "int144",
                    "nodeType": "ElementaryTypeName",
                    "src": "25038:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int144",
                      "typeString": "int144"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "25037:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31387,
            "nodeType": "FunctionDefinition",
            "src": "25542:198:167",
            "nodes": [],
            "body": {
              "id": 31386,
              "nodeType": "Block",
              "src": "25616:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31377,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31372,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31370,
                      "src": "25626:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int136",
                        "typeString": "int136"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31375,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31367,
                          "src": "25646:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31374,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "25639:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int136_$",
                          "typeString": "type(int136)"
                        },
                        "typeName": {
                          "id": 31373,
                          "name": "int136",
                          "nodeType": "ElementaryTypeName",
                          "src": "25639:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31376,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "25639:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int136",
                        "typeString": "int136"
                      }
                    },
                    "src": "25626:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int136",
                      "typeString": "int136"
                    }
                  },
                  "id": 31378,
                  "nodeType": "ExpressionStatement",
                  "src": "25626:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31382,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31380,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31370,
                          "src": "25670:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int136",
                            "typeString": "int136"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31381,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31367,
                          "src": "25684:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "25670:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203133362062697473",
                        "id": 31383,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "25691:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_8b1f81e2e2913e1cee9dba7bcd9837bbf8a8122edaac4afc578271db3c25a56a",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 136 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 136 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_8b1f81e2e2913e1cee9dba7bcd9837bbf8a8122edaac4afc578271db3c25a56a",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 136 bits\""
                        }
                      ],
                      "id": 31379,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "25662:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31384,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "25662:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31385,
                  "nodeType": "ExpressionStatement",
                  "src": "25662:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31365,
              "nodeType": "StructuredDocumentation",
              "src": "25187:350:167",
              "text": " @dev Returns the downcasted int136 from int256, reverting on\n overflow (when the input is less than smallest int136 or\n greater than largest int136).\n Counterpart to Solidity's `int136` operator.\n Requirements:\n - input must fit into 136 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt136",
            "nameLocation": "25551:8:167",
            "parameters": {
              "id": 31368,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31367,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "25567:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31387,
                  "src": "25560:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31366,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "25560:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "25559:14:167"
            },
            "returnParameters": {
              "id": 31371,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31370,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "25604:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31387,
                  "src": "25597:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int136",
                    "typeString": "int136"
                  },
                  "typeName": {
                    "id": 31369,
                    "name": "int136",
                    "nodeType": "ElementaryTypeName",
                    "src": "25597:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int136",
                      "typeString": "int136"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "25596:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31410,
            "nodeType": "FunctionDefinition",
            "src": "26101:198:167",
            "nodes": [],
            "body": {
              "id": 31409,
              "nodeType": "Block",
              "src": "26175:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31400,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31395,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31393,
                      "src": "26185:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int128",
                        "typeString": "int128"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31398,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31390,
                          "src": "26205:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31397,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "26198:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int128_$",
                          "typeString": "type(int128)"
                        },
                        "typeName": {
                          "id": 31396,
                          "name": "int128",
                          "nodeType": "ElementaryTypeName",
                          "src": "26198:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31399,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "26198:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int128",
                        "typeString": "int128"
                      }
                    },
                    "src": "26185:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int128",
                      "typeString": "int128"
                    }
                  },
                  "id": 31401,
                  "nodeType": "ExpressionStatement",
                  "src": "26185:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31405,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31403,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31393,
                          "src": "26229:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int128",
                            "typeString": "int128"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31404,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31390,
                          "src": "26243:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "26229:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203132382062697473",
                        "id": 31406,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "26250:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_47a1e201974f94d3d1a31c8b08ae18c6966c758bdcd4400020012b98cc55426c",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 128 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 128 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_47a1e201974f94d3d1a31c8b08ae18c6966c758bdcd4400020012b98cc55426c",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 128 bits\""
                        }
                      ],
                      "id": 31402,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "26221:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31407,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "26221:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31408,
                  "nodeType": "ExpressionStatement",
                  "src": "26221:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31388,
              "nodeType": "StructuredDocumentation",
              "src": "25746:350:167",
              "text": " @dev Returns the downcasted int128 from int256, reverting on\n overflow (when the input is less than smallest int128 or\n greater than largest int128).\n Counterpart to Solidity's `int128` operator.\n Requirements:\n - input must fit into 128 bits\n _Available since v3.1._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt128",
            "nameLocation": "26110:8:167",
            "parameters": {
              "id": 31391,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31390,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "26126:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31410,
                  "src": "26119:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31389,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "26119:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "26118:14:167"
            },
            "returnParameters": {
              "id": 31394,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31393,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "26163:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31410,
                  "src": "26156:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int128",
                    "typeString": "int128"
                  },
                  "typeName": {
                    "id": 31392,
                    "name": "int128",
                    "nodeType": "ElementaryTypeName",
                    "src": "26156:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int128",
                      "typeString": "int128"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "26155:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31433,
            "nodeType": "FunctionDefinition",
            "src": "26660:198:167",
            "nodes": [],
            "body": {
              "id": 31432,
              "nodeType": "Block",
              "src": "26734:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31423,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31418,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31416,
                      "src": "26744:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int120",
                        "typeString": "int120"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31421,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31413,
                          "src": "26764:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31420,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "26757:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int120_$",
                          "typeString": "type(int120)"
                        },
                        "typeName": {
                          "id": 31419,
                          "name": "int120",
                          "nodeType": "ElementaryTypeName",
                          "src": "26757:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31422,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "26757:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int120",
                        "typeString": "int120"
                      }
                    },
                    "src": "26744:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int120",
                      "typeString": "int120"
                    }
                  },
                  "id": 31424,
                  "nodeType": "ExpressionStatement",
                  "src": "26744:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31428,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31426,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31416,
                          "src": "26788:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int120",
                            "typeString": "int120"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31427,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31413,
                          "src": "26802:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "26788:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203132302062697473",
                        "id": 31429,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "26809:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_3c40c26bb27060cce77002ca0c426dcc1bef2d367c195ca2eb24bd8b2cc1bb09",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 120 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 120 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_3c40c26bb27060cce77002ca0c426dcc1bef2d367c195ca2eb24bd8b2cc1bb09",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 120 bits\""
                        }
                      ],
                      "id": 31425,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "26780:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31430,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "26780:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31431,
                  "nodeType": "ExpressionStatement",
                  "src": "26780:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31411,
              "nodeType": "StructuredDocumentation",
              "src": "26305:350:167",
              "text": " @dev Returns the downcasted int120 from int256, reverting on\n overflow (when the input is less than smallest int120 or\n greater than largest int120).\n Counterpart to Solidity's `int120` operator.\n Requirements:\n - input must fit into 120 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt120",
            "nameLocation": "26669:8:167",
            "parameters": {
              "id": 31414,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31413,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "26685:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31433,
                  "src": "26678:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31412,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "26678:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "26677:14:167"
            },
            "returnParameters": {
              "id": 31417,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31416,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "26722:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31433,
                  "src": "26715:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int120",
                    "typeString": "int120"
                  },
                  "typeName": {
                    "id": 31415,
                    "name": "int120",
                    "nodeType": "ElementaryTypeName",
                    "src": "26715:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int120",
                      "typeString": "int120"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "26714:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31456,
            "nodeType": "FunctionDefinition",
            "src": "27219:198:167",
            "nodes": [],
            "body": {
              "id": 31455,
              "nodeType": "Block",
              "src": "27293:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31446,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31441,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31439,
                      "src": "27303:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int112",
                        "typeString": "int112"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31444,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31436,
                          "src": "27323:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31443,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "27316:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int112_$",
                          "typeString": "type(int112)"
                        },
                        "typeName": {
                          "id": 31442,
                          "name": "int112",
                          "nodeType": "ElementaryTypeName",
                          "src": "27316:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31445,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "27316:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int112",
                        "typeString": "int112"
                      }
                    },
                    "src": "27303:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int112",
                      "typeString": "int112"
                    }
                  },
                  "id": 31447,
                  "nodeType": "ExpressionStatement",
                  "src": "27303:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31451,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31449,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31439,
                          "src": "27347:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int112",
                            "typeString": "int112"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31450,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31436,
                          "src": "27361:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "27347:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203131322062697473",
                        "id": 31452,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "27368:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_45659ae152ef697531e1c1115de07c87af91ac22466c3e76b808821799776efd",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 112 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 112 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_45659ae152ef697531e1c1115de07c87af91ac22466c3e76b808821799776efd",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 112 bits\""
                        }
                      ],
                      "id": 31448,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "27339:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31453,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "27339:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31454,
                  "nodeType": "ExpressionStatement",
                  "src": "27339:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31434,
              "nodeType": "StructuredDocumentation",
              "src": "26864:350:167",
              "text": " @dev Returns the downcasted int112 from int256, reverting on\n overflow (when the input is less than smallest int112 or\n greater than largest int112).\n Counterpart to Solidity's `int112` operator.\n Requirements:\n - input must fit into 112 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt112",
            "nameLocation": "27228:8:167",
            "parameters": {
              "id": 31437,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31436,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "27244:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31456,
                  "src": "27237:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31435,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "27237:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "27236:14:167"
            },
            "returnParameters": {
              "id": 31440,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31439,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "27281:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31456,
                  "src": "27274:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int112",
                    "typeString": "int112"
                  },
                  "typeName": {
                    "id": 31438,
                    "name": "int112",
                    "nodeType": "ElementaryTypeName",
                    "src": "27274:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int112",
                      "typeString": "int112"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "27273:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31479,
            "nodeType": "FunctionDefinition",
            "src": "27778:198:167",
            "nodes": [],
            "body": {
              "id": 31478,
              "nodeType": "Block",
              "src": "27852:124:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31469,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31464,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31462,
                      "src": "27862:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int104",
                        "typeString": "int104"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31467,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31459,
                          "src": "27882:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31466,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "27875:6:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int104_$",
                          "typeString": "type(int104)"
                        },
                        "typeName": {
                          "id": 31465,
                          "name": "int104",
                          "nodeType": "ElementaryTypeName",
                          "src": "27875:6:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31468,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "27875:13:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int104",
                        "typeString": "int104"
                      }
                    },
                    "src": "27862:26:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int104",
                      "typeString": "int104"
                    }
                  },
                  "id": 31470,
                  "nodeType": "ExpressionStatement",
                  "src": "27862:26:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31474,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31472,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31462,
                          "src": "27906:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int104",
                            "typeString": "int104"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31473,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31459,
                          "src": "27920:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "27906:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e203130342062697473",
                        "id": 31475,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "27927:41:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_5d7f3e1b7e9f9a06fded6b093c6fd1473ca0a14cc4bb683db904e803e2482981",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 104 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 104 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_5d7f3e1b7e9f9a06fded6b093c6fd1473ca0a14cc4bb683db904e803e2482981",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 104 bits\""
                        }
                      ],
                      "id": 31471,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "27898:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31476,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "27898:71:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31477,
                  "nodeType": "ExpressionStatement",
                  "src": "27898:71:167"
                }
              ]
            },
            "documentation": {
              "id": 31457,
              "nodeType": "StructuredDocumentation",
              "src": "27423:350:167",
              "text": " @dev Returns the downcasted int104 from int256, reverting on\n overflow (when the input is less than smallest int104 or\n greater than largest int104).\n Counterpart to Solidity's `int104` operator.\n Requirements:\n - input must fit into 104 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt104",
            "nameLocation": "27787:8:167",
            "parameters": {
              "id": 31460,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31459,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "27803:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31479,
                  "src": "27796:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31458,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "27796:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "27795:14:167"
            },
            "returnParameters": {
              "id": 31463,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31462,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "27840:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31479,
                  "src": "27833:17:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int104",
                    "typeString": "int104"
                  },
                  "typeName": {
                    "id": 31461,
                    "name": "int104",
                    "nodeType": "ElementaryTypeName",
                    "src": "27833:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int104",
                      "typeString": "int104"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "27832:19:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31502,
            "nodeType": "FunctionDefinition",
            "src": "28332:194:167",
            "nodes": [],
            "body": {
              "id": 31501,
              "nodeType": "Block",
              "src": "28404:122:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31492,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31487,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31485,
                      "src": "28414:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int96",
                        "typeString": "int96"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31490,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31482,
                          "src": "28433:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31489,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "28427:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int96_$",
                          "typeString": "type(int96)"
                        },
                        "typeName": {
                          "id": 31488,
                          "name": "int96",
                          "nodeType": "ElementaryTypeName",
                          "src": "28427:5:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31491,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "28427:12:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int96",
                        "typeString": "int96"
                      }
                    },
                    "src": "28414:25:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int96",
                      "typeString": "int96"
                    }
                  },
                  "id": 31493,
                  "nodeType": "ExpressionStatement",
                  "src": "28414:25:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31497,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31495,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31485,
                          "src": "28457:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int96",
                            "typeString": "int96"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31496,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31482,
                          "src": "28471:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "28457:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2039362062697473",
                        "id": 31498,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "28478:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_06d20189090e973729391526269baef79c35dd621633195648e5f8309eef9e19",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 96 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 96 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_06d20189090e973729391526269baef79c35dd621633195648e5f8309eef9e19",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 96 bits\""
                        }
                      ],
                      "id": 31494,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "28449:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31499,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "28449:70:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31500,
                  "nodeType": "ExpressionStatement",
                  "src": "28449:70:167"
                }
              ]
            },
            "documentation": {
              "id": 31480,
              "nodeType": "StructuredDocumentation",
              "src": "27982:345:167",
              "text": " @dev Returns the downcasted int96 from int256, reverting on\n overflow (when the input is less than smallest int96 or\n greater than largest int96).\n Counterpart to Solidity's `int96` operator.\n Requirements:\n - input must fit into 96 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt96",
            "nameLocation": "28341:7:167",
            "parameters": {
              "id": 31483,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31482,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "28356:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31502,
                  "src": "28349:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31481,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "28349:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "28348:14:167"
            },
            "returnParameters": {
              "id": 31486,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31485,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "28392:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31502,
                  "src": "28386:16:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int96",
                    "typeString": "int96"
                  },
                  "typeName": {
                    "id": 31484,
                    "name": "int96",
                    "nodeType": "ElementaryTypeName",
                    "src": "28386:5:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int96",
                      "typeString": "int96"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "28385:18:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31525,
            "nodeType": "FunctionDefinition",
            "src": "28882:194:167",
            "nodes": [],
            "body": {
              "id": 31524,
              "nodeType": "Block",
              "src": "28954:122:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31515,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31510,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31508,
                      "src": "28964:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int88",
                        "typeString": "int88"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31513,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31505,
                          "src": "28983:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31512,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "28977:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int88_$",
                          "typeString": "type(int88)"
                        },
                        "typeName": {
                          "id": 31511,
                          "name": "int88",
                          "nodeType": "ElementaryTypeName",
                          "src": "28977:5:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31514,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "28977:12:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int88",
                        "typeString": "int88"
                      }
                    },
                    "src": "28964:25:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int88",
                      "typeString": "int88"
                    }
                  },
                  "id": 31516,
                  "nodeType": "ExpressionStatement",
                  "src": "28964:25:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31520,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31518,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31508,
                          "src": "29007:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int88",
                            "typeString": "int88"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31519,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31505,
                          "src": "29021:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "29007:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2038382062697473",
                        "id": 31521,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "29028:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_ae080bd7a76a46f0a0caf00941bc2cdf6002799ca2813a3af7295019576d715d",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 88 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 88 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_ae080bd7a76a46f0a0caf00941bc2cdf6002799ca2813a3af7295019576d715d",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 88 bits\""
                        }
                      ],
                      "id": 31517,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "28999:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31522,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "28999:70:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31523,
                  "nodeType": "ExpressionStatement",
                  "src": "28999:70:167"
                }
              ]
            },
            "documentation": {
              "id": 31503,
              "nodeType": "StructuredDocumentation",
              "src": "28532:345:167",
              "text": " @dev Returns the downcasted int88 from int256, reverting on\n overflow (when the input is less than smallest int88 or\n greater than largest int88).\n Counterpart to Solidity's `int88` operator.\n Requirements:\n - input must fit into 88 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt88",
            "nameLocation": "28891:7:167",
            "parameters": {
              "id": 31506,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31505,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "28906:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31525,
                  "src": "28899:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31504,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "28899:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "28898:14:167"
            },
            "returnParameters": {
              "id": 31509,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31508,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "28942:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31525,
                  "src": "28936:16:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int88",
                    "typeString": "int88"
                  },
                  "typeName": {
                    "id": 31507,
                    "name": "int88",
                    "nodeType": "ElementaryTypeName",
                    "src": "28936:5:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int88",
                      "typeString": "int88"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "28935:18:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31548,
            "nodeType": "FunctionDefinition",
            "src": "29432:194:167",
            "nodes": [],
            "body": {
              "id": 31547,
              "nodeType": "Block",
              "src": "29504:122:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31538,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31533,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31531,
                      "src": "29514:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int80",
                        "typeString": "int80"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31536,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31528,
                          "src": "29533:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31535,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "29527:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int80_$",
                          "typeString": "type(int80)"
                        },
                        "typeName": {
                          "id": 31534,
                          "name": "int80",
                          "nodeType": "ElementaryTypeName",
                          "src": "29527:5:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31537,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "29527:12:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int80",
                        "typeString": "int80"
                      }
                    },
                    "src": "29514:25:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int80",
                      "typeString": "int80"
                    }
                  },
                  "id": 31539,
                  "nodeType": "ExpressionStatement",
                  "src": "29514:25:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31543,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31541,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31531,
                          "src": "29557:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int80",
                            "typeString": "int80"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31542,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31528,
                          "src": "29571:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "29557:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2038302062697473",
                        "id": 31544,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "29578:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_3cba87c71fade7d3cd7b673c159aab98afc040a5369691a33559d905d20ab5d1",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 80 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 80 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_3cba87c71fade7d3cd7b673c159aab98afc040a5369691a33559d905d20ab5d1",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 80 bits\""
                        }
                      ],
                      "id": 31540,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "29549:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31545,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "29549:70:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31546,
                  "nodeType": "ExpressionStatement",
                  "src": "29549:70:167"
                }
              ]
            },
            "documentation": {
              "id": 31526,
              "nodeType": "StructuredDocumentation",
              "src": "29082:345:167",
              "text": " @dev Returns the downcasted int80 from int256, reverting on\n overflow (when the input is less than smallest int80 or\n greater than largest int80).\n Counterpart to Solidity's `int80` operator.\n Requirements:\n - input must fit into 80 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt80",
            "nameLocation": "29441:7:167",
            "parameters": {
              "id": 31529,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31528,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "29456:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31548,
                  "src": "29449:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31527,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "29449:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "29448:14:167"
            },
            "returnParameters": {
              "id": 31532,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31531,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "29492:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31548,
                  "src": "29486:16:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int80",
                    "typeString": "int80"
                  },
                  "typeName": {
                    "id": 31530,
                    "name": "int80",
                    "nodeType": "ElementaryTypeName",
                    "src": "29486:5:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int80",
                      "typeString": "int80"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "29485:18:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31571,
            "nodeType": "FunctionDefinition",
            "src": "29982:194:167",
            "nodes": [],
            "body": {
              "id": 31570,
              "nodeType": "Block",
              "src": "30054:122:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31561,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31556,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31554,
                      "src": "30064:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int72",
                        "typeString": "int72"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31559,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31551,
                          "src": "30083:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31558,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "30077:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int72_$",
                          "typeString": "type(int72)"
                        },
                        "typeName": {
                          "id": 31557,
                          "name": "int72",
                          "nodeType": "ElementaryTypeName",
                          "src": "30077:5:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31560,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "30077:12:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int72",
                        "typeString": "int72"
                      }
                    },
                    "src": "30064:25:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int72",
                      "typeString": "int72"
                    }
                  },
                  "id": 31562,
                  "nodeType": "ExpressionStatement",
                  "src": "30064:25:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31566,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31564,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31554,
                          "src": "30107:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int72",
                            "typeString": "int72"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31565,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31551,
                          "src": "30121:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "30107:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2037322062697473",
                        "id": 31567,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "30128:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_71584237cc5250b8f417982144a947efe8f4c76feba008ff32ac480e69d60606",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 72 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 72 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_71584237cc5250b8f417982144a947efe8f4c76feba008ff32ac480e69d60606",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 72 bits\""
                        }
                      ],
                      "id": 31563,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "30099:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31568,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "30099:70:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31569,
                  "nodeType": "ExpressionStatement",
                  "src": "30099:70:167"
                }
              ]
            },
            "documentation": {
              "id": 31549,
              "nodeType": "StructuredDocumentation",
              "src": "29632:345:167",
              "text": " @dev Returns the downcasted int72 from int256, reverting on\n overflow (when the input is less than smallest int72 or\n greater than largest int72).\n Counterpart to Solidity's `int72` operator.\n Requirements:\n - input must fit into 72 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt72",
            "nameLocation": "29991:7:167",
            "parameters": {
              "id": 31552,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31551,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "30006:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31571,
                  "src": "29999:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31550,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "29999:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "29998:14:167"
            },
            "returnParameters": {
              "id": 31555,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31554,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "30042:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31571,
                  "src": "30036:16:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int72",
                    "typeString": "int72"
                  },
                  "typeName": {
                    "id": 31553,
                    "name": "int72",
                    "nodeType": "ElementaryTypeName",
                    "src": "30036:5:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int72",
                      "typeString": "int72"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "30035:18:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31594,
            "nodeType": "FunctionDefinition",
            "src": "30532:194:167",
            "nodes": [],
            "body": {
              "id": 31593,
              "nodeType": "Block",
              "src": "30604:122:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31584,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31579,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31577,
                      "src": "30614:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int64",
                        "typeString": "int64"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31582,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31574,
                          "src": "30633:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31581,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "30627:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int64_$",
                          "typeString": "type(int64)"
                        },
                        "typeName": {
                          "id": 31580,
                          "name": "int64",
                          "nodeType": "ElementaryTypeName",
                          "src": "30627:5:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31583,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "30627:12:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int64",
                        "typeString": "int64"
                      }
                    },
                    "src": "30614:25:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int64",
                      "typeString": "int64"
                    }
                  },
                  "id": 31585,
                  "nodeType": "ExpressionStatement",
                  "src": "30614:25:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31589,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31587,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31577,
                          "src": "30657:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int64",
                            "typeString": "int64"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31588,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31574,
                          "src": "30671:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "30657:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2036342062697473",
                        "id": 31590,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "30678:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_93ae0c6bf6ffaece591a770b1865daa9f65157e541970aa9d8dc5f89a9490939",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 64 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 64 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_93ae0c6bf6ffaece591a770b1865daa9f65157e541970aa9d8dc5f89a9490939",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 64 bits\""
                        }
                      ],
                      "id": 31586,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "30649:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31591,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "30649:70:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31592,
                  "nodeType": "ExpressionStatement",
                  "src": "30649:70:167"
                }
              ]
            },
            "documentation": {
              "id": 31572,
              "nodeType": "StructuredDocumentation",
              "src": "30182:345:167",
              "text": " @dev Returns the downcasted int64 from int256, reverting on\n overflow (when the input is less than smallest int64 or\n greater than largest int64).\n Counterpart to Solidity's `int64` operator.\n Requirements:\n - input must fit into 64 bits\n _Available since v3.1._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt64",
            "nameLocation": "30541:7:167",
            "parameters": {
              "id": 31575,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31574,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "30556:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31594,
                  "src": "30549:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31573,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "30549:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "30548:14:167"
            },
            "returnParameters": {
              "id": 31578,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31577,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "30592:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31594,
                  "src": "30586:16:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int64",
                    "typeString": "int64"
                  },
                  "typeName": {
                    "id": 31576,
                    "name": "int64",
                    "nodeType": "ElementaryTypeName",
                    "src": "30586:5:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int64",
                      "typeString": "int64"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "30585:18:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31617,
            "nodeType": "FunctionDefinition",
            "src": "31082:194:167",
            "nodes": [],
            "body": {
              "id": 31616,
              "nodeType": "Block",
              "src": "31154:122:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31607,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31602,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31600,
                      "src": "31164:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int56",
                        "typeString": "int56"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31605,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31597,
                          "src": "31183:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31604,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "31177:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int56_$",
                          "typeString": "type(int56)"
                        },
                        "typeName": {
                          "id": 31603,
                          "name": "int56",
                          "nodeType": "ElementaryTypeName",
                          "src": "31177:5:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31606,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "31177:12:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int56",
                        "typeString": "int56"
                      }
                    },
                    "src": "31164:25:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int56",
                      "typeString": "int56"
                    }
                  },
                  "id": 31608,
                  "nodeType": "ExpressionStatement",
                  "src": "31164:25:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31612,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31610,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31600,
                          "src": "31207:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int56",
                            "typeString": "int56"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31611,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31597,
                          "src": "31221:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "31207:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2035362062697473",
                        "id": 31613,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "31228:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_656ad93b5ff6665bfe05d97d51fad7c02ad79e6c43bef066c042a6900f450bc5",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 56 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 56 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_656ad93b5ff6665bfe05d97d51fad7c02ad79e6c43bef066c042a6900f450bc5",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 56 bits\""
                        }
                      ],
                      "id": 31609,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "31199:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31614,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "31199:70:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31615,
                  "nodeType": "ExpressionStatement",
                  "src": "31199:70:167"
                }
              ]
            },
            "documentation": {
              "id": 31595,
              "nodeType": "StructuredDocumentation",
              "src": "30732:345:167",
              "text": " @dev Returns the downcasted int56 from int256, reverting on\n overflow (when the input is less than smallest int56 or\n greater than largest int56).\n Counterpart to Solidity's `int56` operator.\n Requirements:\n - input must fit into 56 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt56",
            "nameLocation": "31091:7:167",
            "parameters": {
              "id": 31598,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31597,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "31106:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31617,
                  "src": "31099:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31596,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "31099:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "31098:14:167"
            },
            "returnParameters": {
              "id": 31601,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31600,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "31142:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31617,
                  "src": "31136:16:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int56",
                    "typeString": "int56"
                  },
                  "typeName": {
                    "id": 31599,
                    "name": "int56",
                    "nodeType": "ElementaryTypeName",
                    "src": "31136:5:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int56",
                      "typeString": "int56"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "31135:18:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31640,
            "nodeType": "FunctionDefinition",
            "src": "31632:194:167",
            "nodes": [],
            "body": {
              "id": 31639,
              "nodeType": "Block",
              "src": "31704:122:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31630,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31625,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31623,
                      "src": "31714:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int48",
                        "typeString": "int48"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31628,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31620,
                          "src": "31733:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31627,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "31727:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int48_$",
                          "typeString": "type(int48)"
                        },
                        "typeName": {
                          "id": 31626,
                          "name": "int48",
                          "nodeType": "ElementaryTypeName",
                          "src": "31727:5:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31629,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "31727:12:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int48",
                        "typeString": "int48"
                      }
                    },
                    "src": "31714:25:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int48",
                      "typeString": "int48"
                    }
                  },
                  "id": 31631,
                  "nodeType": "ExpressionStatement",
                  "src": "31714:25:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31635,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31633,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31623,
                          "src": "31757:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int48",
                            "typeString": "int48"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31634,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31620,
                          "src": "31771:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "31757:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2034382062697473",
                        "id": 31636,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "31778:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_599034f9324dd4e988c6cea5a00a30f53147fec1b01559682f18cd840028f495",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 48 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 48 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_599034f9324dd4e988c6cea5a00a30f53147fec1b01559682f18cd840028f495",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 48 bits\""
                        }
                      ],
                      "id": 31632,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "31749:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31637,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "31749:70:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31638,
                  "nodeType": "ExpressionStatement",
                  "src": "31749:70:167"
                }
              ]
            },
            "documentation": {
              "id": 31618,
              "nodeType": "StructuredDocumentation",
              "src": "31282:345:167",
              "text": " @dev Returns the downcasted int48 from int256, reverting on\n overflow (when the input is less than smallest int48 or\n greater than largest int48).\n Counterpart to Solidity's `int48` operator.\n Requirements:\n - input must fit into 48 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt48",
            "nameLocation": "31641:7:167",
            "parameters": {
              "id": 31621,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31620,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "31656:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31640,
                  "src": "31649:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31619,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "31649:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "31648:14:167"
            },
            "returnParameters": {
              "id": 31624,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31623,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "31692:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31640,
                  "src": "31686:16:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int48",
                    "typeString": "int48"
                  },
                  "typeName": {
                    "id": 31622,
                    "name": "int48",
                    "nodeType": "ElementaryTypeName",
                    "src": "31686:5:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int48",
                      "typeString": "int48"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "31685:18:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31663,
            "nodeType": "FunctionDefinition",
            "src": "32182:194:167",
            "nodes": [],
            "body": {
              "id": 31662,
              "nodeType": "Block",
              "src": "32254:122:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31653,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31648,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31646,
                      "src": "32264:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int40",
                        "typeString": "int40"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31651,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31643,
                          "src": "32283:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31650,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "32277:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int40_$",
                          "typeString": "type(int40)"
                        },
                        "typeName": {
                          "id": 31649,
                          "name": "int40",
                          "nodeType": "ElementaryTypeName",
                          "src": "32277:5:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31652,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "32277:12:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int40",
                        "typeString": "int40"
                      }
                    },
                    "src": "32264:25:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int40",
                      "typeString": "int40"
                    }
                  },
                  "id": 31654,
                  "nodeType": "ExpressionStatement",
                  "src": "32264:25:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31658,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31656,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31646,
                          "src": "32307:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int40",
                            "typeString": "int40"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31657,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31643,
                          "src": "32321:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "32307:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2034302062697473",
                        "id": 31659,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "32328:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_b23559c58b98a5d3ed7016699c7171ac8defa5a1d180f9a9ffa60468a5701d37",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 40 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 40 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_b23559c58b98a5d3ed7016699c7171ac8defa5a1d180f9a9ffa60468a5701d37",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 40 bits\""
                        }
                      ],
                      "id": 31655,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "32299:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31660,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "32299:70:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31661,
                  "nodeType": "ExpressionStatement",
                  "src": "32299:70:167"
                }
              ]
            },
            "documentation": {
              "id": 31641,
              "nodeType": "StructuredDocumentation",
              "src": "31832:345:167",
              "text": " @dev Returns the downcasted int40 from int256, reverting on\n overflow (when the input is less than smallest int40 or\n greater than largest int40).\n Counterpart to Solidity's `int40` operator.\n Requirements:\n - input must fit into 40 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt40",
            "nameLocation": "32191:7:167",
            "parameters": {
              "id": 31644,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31643,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "32206:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31663,
                  "src": "32199:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31642,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "32199:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "32198:14:167"
            },
            "returnParameters": {
              "id": 31647,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31646,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "32242:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31663,
                  "src": "32236:16:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int40",
                    "typeString": "int40"
                  },
                  "typeName": {
                    "id": 31645,
                    "name": "int40",
                    "nodeType": "ElementaryTypeName",
                    "src": "32236:5:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int40",
                      "typeString": "int40"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "32235:18:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31686,
            "nodeType": "FunctionDefinition",
            "src": "32732:194:167",
            "nodes": [],
            "body": {
              "id": 31685,
              "nodeType": "Block",
              "src": "32804:122:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31676,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31671,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31669,
                      "src": "32814:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int32",
                        "typeString": "int32"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31674,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31666,
                          "src": "32833:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31673,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "32827:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int32_$",
                          "typeString": "type(int32)"
                        },
                        "typeName": {
                          "id": 31672,
                          "name": "int32",
                          "nodeType": "ElementaryTypeName",
                          "src": "32827:5:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31675,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "32827:12:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int32",
                        "typeString": "int32"
                      }
                    },
                    "src": "32814:25:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int32",
                      "typeString": "int32"
                    }
                  },
                  "id": 31677,
                  "nodeType": "ExpressionStatement",
                  "src": "32814:25:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31681,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31679,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31669,
                          "src": "32857:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int32",
                            "typeString": "int32"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31680,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31666,
                          "src": "32871:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "32857:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2033322062697473",
                        "id": 31682,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "32878:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_c907489dafcfb622d3b83f2657a14d6da2f59e0de3116af0d6a80554c1a7cb19",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 32 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 32 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_c907489dafcfb622d3b83f2657a14d6da2f59e0de3116af0d6a80554c1a7cb19",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 32 bits\""
                        }
                      ],
                      "id": 31678,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "32849:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31683,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "32849:70:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31684,
                  "nodeType": "ExpressionStatement",
                  "src": "32849:70:167"
                }
              ]
            },
            "documentation": {
              "id": 31664,
              "nodeType": "StructuredDocumentation",
              "src": "32382:345:167",
              "text": " @dev Returns the downcasted int32 from int256, reverting on\n overflow (when the input is less than smallest int32 or\n greater than largest int32).\n Counterpart to Solidity's `int32` operator.\n Requirements:\n - input must fit into 32 bits\n _Available since v3.1._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt32",
            "nameLocation": "32741:7:167",
            "parameters": {
              "id": 31667,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31666,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "32756:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31686,
                  "src": "32749:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31665,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "32749:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "32748:14:167"
            },
            "returnParameters": {
              "id": 31670,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31669,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "32792:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31686,
                  "src": "32786:16:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int32",
                    "typeString": "int32"
                  },
                  "typeName": {
                    "id": 31668,
                    "name": "int32",
                    "nodeType": "ElementaryTypeName",
                    "src": "32786:5:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int32",
                      "typeString": "int32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "32785:18:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31709,
            "nodeType": "FunctionDefinition",
            "src": "33282:194:167",
            "nodes": [],
            "body": {
              "id": 31708,
              "nodeType": "Block",
              "src": "33354:122:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31699,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31694,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31692,
                      "src": "33364:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int24",
                        "typeString": "int24"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31697,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31689,
                          "src": "33383:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31696,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "33377:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int24_$",
                          "typeString": "type(int24)"
                        },
                        "typeName": {
                          "id": 31695,
                          "name": "int24",
                          "nodeType": "ElementaryTypeName",
                          "src": "33377:5:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31698,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "33377:12:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int24",
                        "typeString": "int24"
                      }
                    },
                    "src": "33364:25:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int24",
                      "typeString": "int24"
                    }
                  },
                  "id": 31700,
                  "nodeType": "ExpressionStatement",
                  "src": "33364:25:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31704,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31702,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31692,
                          "src": "33407:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31703,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31689,
                          "src": "33421:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "33407:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2032342062697473",
                        "id": 31705,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "33428:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_f68b65aaf4574c34e9b9d1442d19636c6608b8c4dbd9331c7245f7915c8b2f55",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 24 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 24 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_f68b65aaf4574c34e9b9d1442d19636c6608b8c4dbd9331c7245f7915c8b2f55",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 24 bits\""
                        }
                      ],
                      "id": 31701,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "33399:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31706,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "33399:70:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31707,
                  "nodeType": "ExpressionStatement",
                  "src": "33399:70:167"
                }
              ]
            },
            "documentation": {
              "id": 31687,
              "nodeType": "StructuredDocumentation",
              "src": "32932:345:167",
              "text": " @dev Returns the downcasted int24 from int256, reverting on\n overflow (when the input is less than smallest int24 or\n greater than largest int24).\n Counterpart to Solidity's `int24` operator.\n Requirements:\n - input must fit into 24 bits\n _Available since v4.7._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt24",
            "nameLocation": "33291:7:167",
            "parameters": {
              "id": 31690,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31689,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "33306:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31709,
                  "src": "33299:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31688,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "33299:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "33298:14:167"
            },
            "returnParameters": {
              "id": 31693,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31692,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "33342:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31709,
                  "src": "33336:16:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int24",
                    "typeString": "int24"
                  },
                  "typeName": {
                    "id": 31691,
                    "name": "int24",
                    "nodeType": "ElementaryTypeName",
                    "src": "33336:5:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int24",
                      "typeString": "int24"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "33335:18:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31732,
            "nodeType": "FunctionDefinition",
            "src": "33832:194:167",
            "nodes": [],
            "body": {
              "id": 31731,
              "nodeType": "Block",
              "src": "33904:122:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31722,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31717,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31715,
                      "src": "33914:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int16",
                        "typeString": "int16"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31720,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31712,
                          "src": "33933:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31719,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "33927:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int16_$",
                          "typeString": "type(int16)"
                        },
                        "typeName": {
                          "id": 31718,
                          "name": "int16",
                          "nodeType": "ElementaryTypeName",
                          "src": "33927:5:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31721,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "33927:12:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int16",
                        "typeString": "int16"
                      }
                    },
                    "src": "33914:25:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int16",
                      "typeString": "int16"
                    }
                  },
                  "id": 31723,
                  "nodeType": "ExpressionStatement",
                  "src": "33914:25:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31727,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31725,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31715,
                          "src": "33957:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int16",
                            "typeString": "int16"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31726,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31712,
                          "src": "33971:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "33957:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e2031362062697473",
                        "id": 31728,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "33978:40:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_13d3a66f9e0e5c92bbe7743bcd3bdb4695009d5f3a96e5ff49718d715b484033",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 16 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 16 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_13d3a66f9e0e5c92bbe7743bcd3bdb4695009d5f3a96e5ff49718d715b484033",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 16 bits\""
                        }
                      ],
                      "id": 31724,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "33949:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31729,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "33949:70:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31730,
                  "nodeType": "ExpressionStatement",
                  "src": "33949:70:167"
                }
              ]
            },
            "documentation": {
              "id": 31710,
              "nodeType": "StructuredDocumentation",
              "src": "33482:345:167",
              "text": " @dev Returns the downcasted int16 from int256, reverting on\n overflow (when the input is less than smallest int16 or\n greater than largest int16).\n Counterpart to Solidity's `int16` operator.\n Requirements:\n - input must fit into 16 bits\n _Available since v3.1._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt16",
            "nameLocation": "33841:7:167",
            "parameters": {
              "id": 31713,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31712,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "33856:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31732,
                  "src": "33849:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31711,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "33849:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "33848:14:167"
            },
            "returnParameters": {
              "id": 31716,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31715,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "33892:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31732,
                  "src": "33886:16:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int16",
                    "typeString": "int16"
                  },
                  "typeName": {
                    "id": 31714,
                    "name": "int16",
                    "nodeType": "ElementaryTypeName",
                    "src": "33886:5:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int16",
                      "typeString": "int16"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "33885:18:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31755,
            "nodeType": "FunctionDefinition",
            "src": "34377:190:167",
            "nodes": [],
            "body": {
              "id": 31754,
              "nodeType": "Block",
              "src": "34447:120:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 31745,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 31740,
                      "name": "downcasted",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31738,
                      "src": "34457:10:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int8",
                        "typeString": "int8"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 31743,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31735,
                          "src": "34475:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        ],
                        "id": 31742,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "34470:4:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int8_$",
                          "typeString": "type(int8)"
                        },
                        "typeName": {
                          "id": 31741,
                          "name": "int8",
                          "nodeType": "ElementaryTypeName",
                          "src": "34470:4:167",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 31744,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "34470:11:167",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int8",
                        "typeString": "int8"
                      }
                    },
                    "src": "34457:24:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int8",
                      "typeString": "int8"
                    }
                  },
                  "id": 31746,
                  "nodeType": "ExpressionStatement",
                  "src": "34457:24:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int256",
                          "typeString": "int256"
                        },
                        "id": 31750,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31748,
                          "name": "downcasted",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31738,
                          "src": "34499:10:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int8",
                            "typeString": "int8"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 31749,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31735,
                          "src": "34513:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          }
                        },
                        "src": "34499:19:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e20382062697473",
                        "id": 31751,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "34520:39:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_2610961ba53259047cd57c60366c5ad0b8aabf5eb4132487619b736715a740d1",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 8 bits\""
                        },
                        "value": "SafeCast: value doesn't fit in 8 bits"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_2610961ba53259047cd57c60366c5ad0b8aabf5eb4132487619b736715a740d1",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in 8 bits\""
                        }
                      ],
                      "id": 31747,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "34491:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31752,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "34491:69:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31753,
                  "nodeType": "ExpressionStatement",
                  "src": "34491:69:167"
                }
              ]
            },
            "documentation": {
              "id": 31733,
              "nodeType": "StructuredDocumentation",
              "src": "34032:340:167",
              "text": " @dev Returns the downcasted int8 from int256, reverting on\n overflow (when the input is less than smallest int8 or\n greater than largest int8).\n Counterpart to Solidity's `int8` operator.\n Requirements:\n - input must fit into 8 bits\n _Available since v3.1._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt8",
            "nameLocation": "34386:6:167",
            "parameters": {
              "id": 31736,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31735,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "34400:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31755,
                  "src": "34393:12:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31734,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "34393:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "34392:14:167"
            },
            "returnParameters": {
              "id": 31739,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31738,
                  "mutability": "mutable",
                  "name": "downcasted",
                  "nameLocation": "34435:10:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31755,
                  "src": "34430:15:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int8",
                    "typeString": "int8"
                  },
                  "typeName": {
                    "id": 31737,
                    "name": "int8",
                    "nodeType": "ElementaryTypeName",
                    "src": "34430:4:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int8",
                      "typeString": "int8"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "34429:17:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 31783,
            "nodeType": "FunctionDefinition",
            "src": "34781:297:167",
            "nodes": [],
            "body": {
              "id": 31782,
              "nodeType": "Block",
              "src": "34845:233:167",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 31773,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 31764,
                          "name": "value",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31758,
                          "src": "34962:5:167",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<=",
                        "rightExpression": {
                          "arguments": [
                            {
                              "expression": {
                                "arguments": [
                                  {
                                    "id": 31769,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "lValueRequested": false,
                                    "nodeType": "ElementaryTypeNameExpression",
                                    "src": "34984:6:167",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_int256_$",
                                      "typeString": "type(int256)"
                                    },
                                    "typeName": {
                                      "id": 31768,
                                      "name": "int256",
                                      "nodeType": "ElementaryTypeName",
                                      "src": "34984:6:167",
                                      "typeDescriptions": {}
                                    }
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_type$_t_int256_$",
                                      "typeString": "type(int256)"
                                    }
                                  ],
                                  "id": 31767,
                                  "name": "type",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": -27,
                                  "src": "34979:4:167",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                    "typeString": "function () pure"
                                  }
                                },
                                "id": 31770,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "functionCall",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "34979:12:167",
                                "tryCall": false,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_magic_meta_type_t_int256",
                                  "typeString": "type(int256)"
                                }
                              },
                              "id": 31771,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "memberName": "max",
                              "nodeType": "MemberAccess",
                              "src": "34979:16:167",
                              "typeDescriptions": {
                                "typeIdentifier": "t_int256",
                                "typeString": "int256"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_int256",
                                "typeString": "int256"
                              }
                            ],
                            "id": 31766,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "34971:7:167",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_uint256_$",
                              "typeString": "type(uint256)"
                            },
                            "typeName": {
                              "id": 31765,
                              "name": "uint256",
                              "nodeType": "ElementaryTypeName",
                              "src": "34971:7:167",
                              "typeDescriptions": {}
                            }
                          },
                          "id": 31772,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "34971:25:167",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "src": "34962:34:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "53616665436173743a2076616c756520646f65736e27742066697420696e20616e20696e74323536",
                        "id": 31774,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "34998:42:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_d70dcf21692b3c91b4c5fbb89ed57f464aa42efbe5b0ea96c4acb7c080144227",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in an int256\""
                        },
                        "value": "SafeCast: value doesn't fit in an int256"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_d70dcf21692b3c91b4c5fbb89ed57f464aa42efbe5b0ea96c4acb7c080144227",
                          "typeString": "literal_string \"SafeCast: value doesn't fit in an int256\""
                        }
                      ],
                      "id": 31763,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "34954:7:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 31775,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "34954:87:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 31776,
                  "nodeType": "ExpressionStatement",
                  "src": "34954:87:167"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 31779,
                        "name": "value",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 31758,
                        "src": "35065:5:167",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 31778,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "35058:6:167",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_int256_$",
                        "typeString": "type(int256)"
                      },
                      "typeName": {
                        "id": 31777,
                        "name": "int256",
                        "nodeType": "ElementaryTypeName",
                        "src": "35058:6:167",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 31780,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "35058:13:167",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "functionReturnParameters": 31762,
                  "id": 31781,
                  "nodeType": "Return",
                  "src": "35051:20:167"
                }
              ]
            },
            "documentation": {
              "id": 31756,
              "nodeType": "StructuredDocumentation",
              "src": "34573:203:167",
              "text": " @dev Converts an unsigned uint256 into a signed int256.\n Requirements:\n - input must be less than or equal to maxInt256.\n _Available since v3.0._"
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toInt256",
            "nameLocation": "34790:8:167",
            "parameters": {
              "id": 31759,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31758,
                  "mutability": "mutable",
                  "name": "value",
                  "nameLocation": "34807:5:167",
                  "nodeType": "VariableDeclaration",
                  "scope": 31783,
                  "src": "34799:13:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 31757,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "34799:7:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "34798:15:167"
            },
            "returnParameters": {
              "id": 31762,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 31761,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 31783,
                  "src": "34837:6:167",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 31760,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "34837:6:167",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "34836:8:167"
            },
            "scope": 31784,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          }
        ],
        "abstract": false,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "documentation": {
          "id": 30246,
          "nodeType": "StructuredDocumentation",
          "src": "217:709:167",
          "text": " @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\n checks.\n Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n easily result in undesired exploitation or bugs, since developers usually\n assume that overflows raise errors. `SafeCast` restores this intuition by\n reverting the transaction when such an operation overflows.\n Using this library instead of the unchecked operations eliminates an entire\n class of bugs, so it's recommended to use it always.\n Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\n all math on `uint256` and `int256` and then downcasting."
        },
        "fullyImplemented": true,
        "linearizedBaseContracts": [
          31784
        ],
        "name": "SafeCast",
        "nameLocation": "935:8:167",
        "scope": 31785,
        "usedErrors": []
      }
    ],
    "license": "MIT"
  },
  "id": 167
}