{
  "contractName": "ConversionHelpers",
  "abi": [],
  "metadata": "{\"compiler\":{\"version\":\"0.4.24+commit.e67f0147\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"@aragon/os/contracts/common/ConversionHelpers.sol\":\"ConversionHelpers\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"@aragon/os/contracts/common/ConversionHelpers.sol\":{\"keccak256\":\"0x9872383d458352f5c68fa5afd1fc84ab6b172cbee33359cfa57655b8eda92416\",\"urls\":[\"bzzr://4636d13fecb497561ff5a2c54bb936a0339308bffa4e71a988b8ce00dcc249f3\"]}},\"version\":1}",
  "bytecode": "0x604c602c600b82828239805160001a60731460008114601c57601e565bfe5b5030600052607381538281f30073000000000000000000000000000000000000000030146080604052600080fd00a165627a7a723058208b738646406e75afbac8bf4e93ee70c7528429a0a9d6954f193ea701fc565cee0029",
  "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fd00a165627a7a723058208b738646406e75afbac8bf4e93ee70c7528429a0a9d6954f193ea701fc565cee0029",
  "sourceMap": "27:1274:23:-;;132:2:-1;166:7;155:9;146:7;137:37;252:7;246:14;243:1;238:23;232:4;229:33;270:1;265:20;;;;222:63;;265:20;274:9;222:63;;298:9;295:1;288:20;328:4;319:7;311:22;352:7;343;336:24",
  "deployedSourceMap": "27:1274:23:-;;;;;;;;",
  "source": "pragma solidity ^0.4.24;\n\n\nlibrary ConversionHelpers {\n    string private constant ERROR_IMPROPER_LENGTH = \"CONVERSION_IMPROPER_LENGTH\";\n\n    function dangerouslyCastUintArrayToBytes(uint256[] memory _input) internal pure returns (bytes memory output) {\n        // Force cast the uint256[] into a bytes array, by overwriting its length\n        // Note that the bytes array doesn't need to be initialized as we immediately overwrite it\n        // with the input and a new length. The input becomes invalid from this point forward.\n        uint256 byteLength = _input.length * 32;\n        assembly {\n            output := _input\n            mstore(output, byteLength)\n        }\n    }\n\n    function dangerouslyCastBytesToUintArray(bytes memory _input) internal pure returns (uint256[] memory output) {\n        // Force cast the bytes array into a uint256[], by overwriting its length\n        // Note that the uint256[] doesn't need to be initialized as we immediately overwrite it\n        // with the input and a new length. The input becomes invalid from this point forward.\n        uint256 intsLength = _input.length / 32;\n        require(_input.length == intsLength * 32, ERROR_IMPROPER_LENGTH);\n\n        assembly {\n            output := _input\n            mstore(output, intsLength)\n        }\n    }\n}\n",
  "sourcePath": "@aragon/os/contracts/common/ConversionHelpers.sol",
  "ast": {
    "absolutePath": "@aragon/os/contracts/common/ConversionHelpers.sol",
    "exportedSymbols": {
      "ConversionHelpers": [
        6183
      ]
    },
    "id": 6184,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 6135,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:23"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "documentation": null,
        "fullyImplemented": true,
        "id": 6183,
        "linearizedBaseContracts": [
          6183
        ],
        "name": "ConversionHelpers",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": true,
            "id": 6138,
            "name": "ERROR_IMPROPER_LENGTH",
            "nodeType": "VariableDeclaration",
            "scope": 6183,
            "src": "59:76:23",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_string_memory",
              "typeString": "string"
            },
            "typeName": {
              "id": 6136,
              "name": "string",
              "nodeType": "ElementaryTypeName",
              "src": "59:6:23",
              "typeDescriptions": {
                "typeIdentifier": "t_string_storage_ptr",
                "typeString": "string"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "434f4e56455253494f4e5f494d50524f5045525f4c454e475448",
              "id": 6137,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "string",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "107:28:23",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_stringliteral_ae6d458f7ae195283b1a4bf6b9fa548b37b2bd69e195d2a474f8d91bafa132ba",
                "typeString": "literal_string \"CONVERSION_IMPROPER_LENGTH\""
              },
              "value": "CONVERSION_IMPROPER_LENGTH"
            },
            "visibility": "private"
          },
          {
            "body": {
              "id": 6154,
              "nodeType": "Block",
              "src": "252:429:23",
              "statements": [
                {
                  "assignments": [
                    6147
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6147,
                      "name": "byteLength",
                      "nodeType": "VariableDeclaration",
                      "scope": 6155,
                      "src": "538:18:23",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 6146,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "538:7:23",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6152,
                  "initialValue": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 6151,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 6148,
                        "name": "_input",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6141,
                        "src": "559:6:23",
                        "typeDescriptions": {
                          "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                          "typeString": "uint256[] memory"
                        }
                      },
                      "id": 6149,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": null,
                      "src": "559:13:23",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "*",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "3332",
                      "id": 6150,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "575:2:23",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_32_by_1",
                        "typeString": "int_const 32"
                      },
                      "value": "32"
                    },
                    "src": "559:18:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "538:39:23"
                },
                {
                  "externalReferences": [
                    {
                      "_input": {
                        "declaration": 6141,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "620:6:23",
                        "valueSize": 1
                      }
                    },
                    {
                      "output": {
                        "declaration": 6144,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "610:6:23",
                        "valueSize": 1
                      }
                    },
                    {
                      "output": {
                        "declaration": 6144,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "646:6:23",
                        "valueSize": 1
                      }
                    },
                    {
                      "byteLength": {
                        "declaration": 6147,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "654:10:23",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6153,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    output := _input\n    mstore(output, byteLength)\n}",
                  "src": "587:94:23"
                }
              ]
            },
            "documentation": null,
            "id": 6155,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "dangerouslyCastUintArrayToBytes",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6142,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6141,
                  "name": "_input",
                  "nodeType": "VariableDeclaration",
                  "scope": 6155,
                  "src": "183:23:23",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 6139,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "183:7:23",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 6140,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "183:9:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "182:25:23"
            },
            "payable": false,
            "returnParameters": {
              "id": 6145,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6144,
                  "name": "output",
                  "nodeType": "VariableDeclaration",
                  "scope": 6155,
                  "src": "231:19:23",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6143,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "231:5:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "230:21:23"
            },
            "scope": 6183,
            "src": "142:539:23",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6181,
              "nodeType": "Block",
              "src": "797:502:23",
              "statements": [
                {
                  "assignments": [
                    6164
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6164,
                      "name": "intsLength",
                      "nodeType": "VariableDeclaration",
                      "scope": 6182,
                      "src": "1081:18:23",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 6163,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "1081:7:23",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6169,
                  "initialValue": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 6168,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 6165,
                        "name": "_input",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6157,
                        "src": "1102:6:23",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      },
                      "id": 6166,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": null,
                      "src": "1102:13:23",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "/",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "3332",
                      "id": 6167,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "1118:2:23",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_32_by_1",
                        "typeString": "int_const 32"
                      },
                      "value": "32"
                    },
                    "src": "1102:18:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1081:39:23"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 6176,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "id": 6171,
                            "name": "_input",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6157,
                            "src": "1138:6:23",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes_memory_ptr",
                              "typeString": "bytes memory"
                            }
                          },
                          "id": 6172,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "length",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "1138:13:23",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          "id": 6175,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 6173,
                            "name": "intsLength",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6164,
                            "src": "1155:10:23",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "*",
                          "rightExpression": {
                            "argumentTypes": null,
                            "hexValue": "3332",
                            "id": 6174,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "1168:2:23",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_32_by_1",
                              "typeString": "int_const 32"
                            },
                            "value": "32"
                          },
                          "src": "1155:15:23",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "src": "1138:32:23",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6177,
                        "name": "ERROR_IMPROPER_LENGTH",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6138,
                        "src": "1172:21:23",
                        "typeDescriptions": {
                          "typeIdentifier": "t_string_memory",
                          "typeString": "string memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_string_memory",
                          "typeString": "string memory"
                        }
                      ],
                      "id": 6170,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        10407,
                        10408
                      ],
                      "referencedDeclaration": 10408,
                      "src": "1130:7:23",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 6178,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1130:64:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 6179,
                  "nodeType": "ExpressionStatement",
                  "src": "1130:64:23"
                },
                {
                  "externalReferences": [
                    {
                      "_input": {
                        "declaration": 6157,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1238:6:23",
                        "valueSize": 1
                      }
                    },
                    {
                      "output": {
                        "declaration": 6161,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1228:6:23",
                        "valueSize": 1
                      }
                    },
                    {
                      "output": {
                        "declaration": 6161,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1264:6:23",
                        "valueSize": 1
                      }
                    },
                    {
                      "intsLength": {
                        "declaration": 6164,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1272:10:23",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6180,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    output := _input\n    mstore(output, intsLength)\n}",
                  "src": "1205:94:23"
                }
              ]
            },
            "documentation": null,
            "id": 6182,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "dangerouslyCastBytesToUintArray",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6158,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6157,
                  "name": "_input",
                  "nodeType": "VariableDeclaration",
                  "scope": 6182,
                  "src": "728:19:23",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6156,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "728:5:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "727:21:23"
            },
            "payable": false,
            "returnParameters": {
              "id": 6162,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6161,
                  "name": "output",
                  "nodeType": "VariableDeclaration",
                  "scope": 6182,
                  "src": "772:23:23",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 6159,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "772:7:23",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 6160,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "772:9:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "771:25:23"
            },
            "scope": 6183,
            "src": "687:612:23",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          }
        ],
        "scope": 6184,
        "src": "27:1274:23"
      }
    ],
    "src": "0:1302:23"
  },
  "legacyAST": {
    "absolutePath": "@aragon/os/contracts/common/ConversionHelpers.sol",
    "exportedSymbols": {
      "ConversionHelpers": [
        6183
      ]
    },
    "id": 6184,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 6135,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:23"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "documentation": null,
        "fullyImplemented": true,
        "id": 6183,
        "linearizedBaseContracts": [
          6183
        ],
        "name": "ConversionHelpers",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": true,
            "id": 6138,
            "name": "ERROR_IMPROPER_LENGTH",
            "nodeType": "VariableDeclaration",
            "scope": 6183,
            "src": "59:76:23",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_string_memory",
              "typeString": "string"
            },
            "typeName": {
              "id": 6136,
              "name": "string",
              "nodeType": "ElementaryTypeName",
              "src": "59:6:23",
              "typeDescriptions": {
                "typeIdentifier": "t_string_storage_ptr",
                "typeString": "string"
              }
            },
            "value": {
              "argumentTypes": null,
              "hexValue": "434f4e56455253494f4e5f494d50524f5045525f4c454e475448",
              "id": 6137,
              "isConstant": false,
              "isLValue": false,
              "isPure": true,
              "kind": "string",
              "lValueRequested": false,
              "nodeType": "Literal",
              "src": "107:28:23",
              "subdenomination": null,
              "typeDescriptions": {
                "typeIdentifier": "t_stringliteral_ae6d458f7ae195283b1a4bf6b9fa548b37b2bd69e195d2a474f8d91bafa132ba",
                "typeString": "literal_string \"CONVERSION_IMPROPER_LENGTH\""
              },
              "value": "CONVERSION_IMPROPER_LENGTH"
            },
            "visibility": "private"
          },
          {
            "body": {
              "id": 6154,
              "nodeType": "Block",
              "src": "252:429:23",
              "statements": [
                {
                  "assignments": [
                    6147
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6147,
                      "name": "byteLength",
                      "nodeType": "VariableDeclaration",
                      "scope": 6155,
                      "src": "538:18:23",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 6146,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "538:7:23",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6152,
                  "initialValue": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 6151,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 6148,
                        "name": "_input",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6141,
                        "src": "559:6:23",
                        "typeDescriptions": {
                          "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                          "typeString": "uint256[] memory"
                        }
                      },
                      "id": 6149,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": null,
                      "src": "559:13:23",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "*",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "3332",
                      "id": 6150,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "575:2:23",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_32_by_1",
                        "typeString": "int_const 32"
                      },
                      "value": "32"
                    },
                    "src": "559:18:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "538:39:23"
                },
                {
                  "externalReferences": [
                    {
                      "_input": {
                        "declaration": 6141,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "620:6:23",
                        "valueSize": 1
                      }
                    },
                    {
                      "output": {
                        "declaration": 6144,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "610:6:23",
                        "valueSize": 1
                      }
                    },
                    {
                      "output": {
                        "declaration": 6144,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "646:6:23",
                        "valueSize": 1
                      }
                    },
                    {
                      "byteLength": {
                        "declaration": 6147,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "654:10:23",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6153,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    output := _input\n    mstore(output, byteLength)\n}",
                  "src": "587:94:23"
                }
              ]
            },
            "documentation": null,
            "id": 6155,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "dangerouslyCastUintArrayToBytes",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6142,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6141,
                  "name": "_input",
                  "nodeType": "VariableDeclaration",
                  "scope": 6155,
                  "src": "183:23:23",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 6139,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "183:7:23",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 6140,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "183:9:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "182:25:23"
            },
            "payable": false,
            "returnParameters": {
              "id": 6145,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6144,
                  "name": "output",
                  "nodeType": "VariableDeclaration",
                  "scope": 6155,
                  "src": "231:19:23",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6143,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "231:5:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "230:21:23"
            },
            "scope": 6183,
            "src": "142:539:23",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6181,
              "nodeType": "Block",
              "src": "797:502:23",
              "statements": [
                {
                  "assignments": [
                    6164
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6164,
                      "name": "intsLength",
                      "nodeType": "VariableDeclaration",
                      "scope": 6182,
                      "src": "1081:18:23",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 6163,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "1081:7:23",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6169,
                  "initialValue": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 6168,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 6165,
                        "name": "_input",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6157,
                        "src": "1102:6:23",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      },
                      "id": 6166,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": null,
                      "src": "1102:13:23",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "/",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "3332",
                      "id": 6167,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "1118:2:23",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_32_by_1",
                        "typeString": "int_const 32"
                      },
                      "value": "32"
                    },
                    "src": "1102:18:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1081:39:23"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 6176,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "id": 6171,
                            "name": "_input",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6157,
                            "src": "1138:6:23",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes_memory_ptr",
                              "typeString": "bytes memory"
                            }
                          },
                          "id": 6172,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "length",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "1138:13:23",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          "id": 6175,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 6173,
                            "name": "intsLength",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6164,
                            "src": "1155:10:23",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "*",
                          "rightExpression": {
                            "argumentTypes": null,
                            "hexValue": "3332",
                            "id": 6174,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "1168:2:23",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_32_by_1",
                              "typeString": "int_const 32"
                            },
                            "value": "32"
                          },
                          "src": "1155:15:23",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "src": "1138:32:23",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6177,
                        "name": "ERROR_IMPROPER_LENGTH",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6138,
                        "src": "1172:21:23",
                        "typeDescriptions": {
                          "typeIdentifier": "t_string_memory",
                          "typeString": "string memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_string_memory",
                          "typeString": "string memory"
                        }
                      ],
                      "id": 6170,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        10407,
                        10408
                      ],
                      "referencedDeclaration": 10408,
                      "src": "1130:7:23",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 6178,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1130:64:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 6179,
                  "nodeType": "ExpressionStatement",
                  "src": "1130:64:23"
                },
                {
                  "externalReferences": [
                    {
                      "_input": {
                        "declaration": 6157,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1238:6:23",
                        "valueSize": 1
                      }
                    },
                    {
                      "output": {
                        "declaration": 6161,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1228:6:23",
                        "valueSize": 1
                      }
                    },
                    {
                      "output": {
                        "declaration": 6161,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1264:6:23",
                        "valueSize": 1
                      }
                    },
                    {
                      "intsLength": {
                        "declaration": 6164,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1272:10:23",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6180,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    output := _input\n    mstore(output, intsLength)\n}",
                  "src": "1205:94:23"
                }
              ]
            },
            "documentation": null,
            "id": 6182,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "dangerouslyCastBytesToUintArray",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6158,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6157,
                  "name": "_input",
                  "nodeType": "VariableDeclaration",
                  "scope": 6182,
                  "src": "728:19:23",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6156,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "728:5:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "727:21:23"
            },
            "payable": false,
            "returnParameters": {
              "id": 6162,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6161,
                  "name": "output",
                  "nodeType": "VariableDeclaration",
                  "scope": 6182,
                  "src": "772:23:23",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 6159,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "772:7:23",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 6160,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "772:9:23",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "771:25:23"
            },
            "scope": 6183,
            "src": "687:612:23",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          }
        ],
        "scope": 6184,
        "src": "27:1274:23"
      }
    ],
    "src": "0:1302:23"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.2.0",
  "updatedAt": "2020-06-07T23:27:00.569Z",
  "devdoc": {
    "methods": {}
  },
  "userdoc": {
    "methods": {}
  }
}