{
  "contractName": "TickBitmap",
  "abi": [],
  "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"The mapping uses int16 for keys since ticks are represented as int24 and there are 256 (2^8) values per word.\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Packed tick initialized state library\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Stores a packed mapping of tick index to its initialized state\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/TickBitmap.sol\":\"TickBitmap\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/BitMath.sol\":{\"keccak256\":\"0xfdb9011d56f4fc6dbf7dfa9bd191d13c405dc1ef5f295e222d402fedd7b78b4a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://635d12ff3353f4996357c4c8798051c49755de9a9431c8068fdd45364c8359f4\",\"dweb:/ipfs/QmfTTffPWDnN1aBeNXgcdozJeBxa9Q6CWJJ2bZh7ZoymKz\"]},\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/TickBitmap.sol\":{\"keccak256\":\"0x2035bacd76333baa4ef2bbd6423561638e1b7e97cb19be5b4d61feeea3340364\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://55da2e8d44c094b9aa1a40577f9ff32605516ae45ad54e799ec9d570d007a206\",\"dweb:/ipfs/QmakgjThKgfBTaj6Vvf54oKkxeHqgxKFmyiVbcjstsGDBF\"]}},\"version\":1}",
  "bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220037dc8e13d6aadbc3f77637a8789cf0563a4b497e5ccdac14fbc6632e8462bd864736f6c63430007060033",
  "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220037dc8e13d6aadbc3f77637a8789cf0563a4b497e5ccdac14fbc6632e8462bd864736f6c63430007060033",
  "immutableReferences": {},
  "generatedSources": [],
  "deployedGeneratedSources": [],
  "sourceMap": "331:3780:29:-:0;;;;;;;;;;;;;;;;;;;;;;;;;",
  "deployedSourceMap": "331:3780:29:-:0;;;;;;;;",
  "source": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity >=0.5.0;\n\nimport './BitMath.sol';\n\n/// @title Packed tick initialized state library\n/// @notice Stores a packed mapping of tick index to its initialized state\n/// @dev The mapping uses int16 for keys since ticks are represented as int24 and there are 256 (2^8) values per word.\nlibrary TickBitmap {\n    /// @notice Computes the position in the mapping where the initialized bit for a tick lives\n    /// @param tick The tick for which to compute the position\n    /// @return wordPos The key in the mapping containing the word in which the bit is stored\n    /// @return bitPos The bit position in the word where the flag is stored\n    function position(int24 tick) private pure returns (int16 wordPos, uint8 bitPos) {\n        wordPos = int16(tick >> 8);\n        bitPos = uint8(tick % 256);\n    }\n\n    /// @notice Flips the initialized state for a given tick from false to true, or vice versa\n    /// @param self The mapping in which to flip the tick\n    /// @param tick The tick to flip\n    /// @param tickSpacing The spacing between usable ticks\n    function flipTick(\n        mapping(int16 => uint256) storage self,\n        int24 tick,\n        int24 tickSpacing\n    ) internal {\n        require(tick % tickSpacing == 0); // ensure that the tick is spaced\n        (int16 wordPos, uint8 bitPos) = position(tick / tickSpacing);\n        uint256 mask = 1 << bitPos;\n        self[wordPos] ^= mask;\n    }\n\n    /// @notice Returns the next initialized tick contained in the same word (or adjacent word) as the tick that is either\n    /// to the left (less than or equal to) or right (greater than) of the given tick\n    /// @param self The mapping in which to compute the next initialized tick\n    /// @param tick The starting tick\n    /// @param tickSpacing The spacing between usable ticks\n    /// @param lte Whether to search for the next initialized tick to the left (less than or equal to the starting tick)\n    /// @return next The next initialized or uninitialized tick up to 256 ticks away from the current tick\n    /// @return initialized Whether the next tick is initialized, as the function only searches within up to 256 ticks\n    function nextInitializedTickWithinOneWord(\n        mapping(int16 => uint256) storage self,\n        int24 tick,\n        int24 tickSpacing,\n        bool lte\n    ) internal view returns (int24 next, bool initialized) {\n        int24 compressed = tick / tickSpacing;\n        if (tick < 0 && tick % tickSpacing != 0) compressed--; // round towards negative infinity\n\n        if (lte) {\n            (int16 wordPos, uint8 bitPos) = position(compressed);\n            // all the 1s at or to the right of the current bitPos\n            uint256 mask = (1 << bitPos) - 1 + (1 << bitPos);\n            uint256 masked = self[wordPos] & mask;\n\n            // if there are no initialized ticks to the right of or at the current tick, return rightmost in the word\n            initialized = masked != 0;\n            // overflow/underflow is possible, but prevented externally by limiting both tickSpacing and tick\n            next = initialized\n                ? (compressed - int24(bitPos - BitMath.mostSignificantBit(masked))) * tickSpacing\n                : (compressed - int24(bitPos)) * tickSpacing;\n        } else {\n            // start from the word of the next tick, since the current tick state doesn't matter\n            (int16 wordPos, uint8 bitPos) = position(compressed + 1);\n            // all the 1s at or to the left of the bitPos\n            uint256 mask = ~((1 << bitPos) - 1);\n            uint256 masked = self[wordPos] & mask;\n\n            // if there are no initialized ticks to the left of the current tick, return leftmost in the word\n            initialized = masked != 0;\n            // overflow/underflow is possible, but prevented externally by limiting both tickSpacing and tick\n            next = initialized\n                ? (compressed + 1 + int24(BitMath.leastSignificantBit(masked) - bitPos)) * tickSpacing\n                : (compressed + 1 + int24(type(uint8).max - bitPos)) * tickSpacing;\n        }\n    }\n}\n",
  "sourcePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/TickBitmap.sol",
  "ast": {
    "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/TickBitmap.sol",
    "exportedSymbols": {
      "BitMath": [
        3800
      ],
      "TickBitmap": [
        6635
      ]
    },
    "id": 6636,
    "license": "BUSL-1.1",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 6381,
        "literals": [
          "solidity",
          ">=",
          "0.5",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "37:24:29"
      },
      {
        "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/BitMath.sol",
        "file": "./BitMath.sol",
        "id": 6382,
        "nodeType": "ImportDirective",
        "scope": 6636,
        "sourceUnit": 3801,
        "src": "63:23:29",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "abstract": false,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "documentation": {
          "id": 6383,
          "nodeType": "StructuredDocumentation",
          "src": "88:243:29",
          "text": "@title Packed tick initialized state library\n @notice Stores a packed mapping of tick index to its initialized state\n @dev The mapping uses int16 for keys since ticks are represented as int24 and there are 256 (2^8) values per word."
        },
        "fullyImplemented": true,
        "id": 6635,
        "linearizedBaseContracts": [
          6635
        ],
        "name": "TickBitmap",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 6411,
              "nodeType": "Block",
              "src": "767:79:29",
              "statements": [
                {
                  "expression": {
                    "id": 6400,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 6393,
                      "name": "wordPos",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6389,
                      "src": "777:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int16",
                        "typeString": "int16"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "commonType": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          },
                          "id": 6398,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "id": 6396,
                            "name": "tick",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6386,
                            "src": "793:4:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_int24",
                              "typeString": "int24"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": ">>",
                          "rightExpression": {
                            "hexValue": "38",
                            "id": 6397,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "801:1:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_8_by_1",
                              "typeString": "int_const 8"
                            },
                            "value": "8"
                          },
                          "src": "793:9:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          }
                        ],
                        "id": 6395,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "787:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_int16_$",
                          "typeString": "type(int16)"
                        },
                        "typeName": {
                          "id": 6394,
                          "name": "int16",
                          "nodeType": "ElementaryTypeName",
                          "src": "787:5:29",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 6399,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "787:16:29",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_int16",
                        "typeString": "int16"
                      }
                    },
                    "src": "777:26:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int16",
                      "typeString": "int16"
                    }
                  },
                  "id": 6401,
                  "nodeType": "ExpressionStatement",
                  "src": "777:26:29"
                },
                {
                  "expression": {
                    "id": 6409,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 6402,
                      "name": "bitPos",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6391,
                      "src": "813:6:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "commonType": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          },
                          "id": 6407,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "id": 6405,
                            "name": "tick",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6386,
                            "src": "828:4:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_int24",
                              "typeString": "int24"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "%",
                          "rightExpression": {
                            "hexValue": "323536",
                            "id": 6406,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "835:3:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_256_by_1",
                              "typeString": "int_const 256"
                            },
                            "value": "256"
                          },
                          "src": "828:10:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          }
                        ],
                        "id": 6404,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "822:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_uint8_$",
                          "typeString": "type(uint8)"
                        },
                        "typeName": {
                          "id": 6403,
                          "name": "uint8",
                          "nodeType": "ElementaryTypeName",
                          "src": "822:5:29",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 6408,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "822:17:29",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      }
                    },
                    "src": "813:26:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "id": 6410,
                  "nodeType": "ExpressionStatement",
                  "src": "813:26:29"
                }
              ]
            },
            "documentation": {
              "id": 6384,
              "nodeType": "StructuredDocumentation",
              "src": "356:325:29",
              "text": "@notice Computes the position in the mapping where the initialized bit for a tick lives\n @param tick The tick for which to compute the position\n @return wordPos The key in the mapping containing the word in which the bit is stored\n @return bitPos The bit position in the word where the flag is stored"
            },
            "id": 6412,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "position",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6387,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6386,
                  "mutability": "mutable",
                  "name": "tick",
                  "nodeType": "VariableDeclaration",
                  "scope": 6412,
                  "src": "704:10:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int24",
                    "typeString": "int24"
                  },
                  "typeName": {
                    "id": 6385,
                    "name": "int24",
                    "nodeType": "ElementaryTypeName",
                    "src": "704:5:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int24",
                      "typeString": "int24"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "703:12:29"
            },
            "returnParameters": {
              "id": 6392,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6389,
                  "mutability": "mutable",
                  "name": "wordPos",
                  "nodeType": "VariableDeclaration",
                  "scope": 6412,
                  "src": "738:13:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int16",
                    "typeString": "int16"
                  },
                  "typeName": {
                    "id": 6388,
                    "name": "int16",
                    "nodeType": "ElementaryTypeName",
                    "src": "738:5:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int16",
                      "typeString": "int16"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6391,
                  "mutability": "mutable",
                  "name": "bitPos",
                  "nodeType": "VariableDeclaration",
                  "scope": 6412,
                  "src": "753:12:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  },
                  "typeName": {
                    "id": 6390,
                    "name": "uint8",
                    "nodeType": "ElementaryTypeName",
                    "src": "753:5:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "737:29:29"
            },
            "scope": 6635,
            "src": "686:160:29",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "private"
          },
          {
            "body": {
              "id": 6454,
              "nodeType": "Block",
              "src": "1230:220:29",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int24",
                          "typeString": "int24"
                        },
                        "id": 6429,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "commonType": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          },
                          "id": 6427,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "id": 6425,
                            "name": "tick",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6419,
                            "src": "1248:4:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_int24",
                              "typeString": "int24"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "%",
                          "rightExpression": {
                            "id": 6426,
                            "name": "tickSpacing",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6421,
                            "src": "1255:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_int24",
                              "typeString": "int24"
                            }
                          },
                          "src": "1248:18:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "hexValue": "30",
                          "id": 6428,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "number",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "1270:1:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_rational_0_by_1",
                            "typeString": "int_const 0"
                          },
                          "value": "0"
                        },
                        "src": "1248:23:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 6424,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        4294967278,
                        4294967278
                      ],
                      "referencedDeclaration": 4294967278,
                      "src": "1240:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 6430,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1240:32:29",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 6431,
                  "nodeType": "ExpressionStatement",
                  "src": "1240:32:29"
                },
                {
                  "assignments": [
                    6433,
                    6435
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6433,
                      "mutability": "mutable",
                      "name": "wordPos",
                      "nodeType": "VariableDeclaration",
                      "scope": 6454,
                      "src": "1317:13:29",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int16",
                        "typeString": "int16"
                      },
                      "typeName": {
                        "id": 6432,
                        "name": "int16",
                        "nodeType": "ElementaryTypeName",
                        "src": "1317:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_int16",
                          "typeString": "int16"
                        }
                      },
                      "visibility": "internal"
                    },
                    {
                      "constant": false,
                      "id": 6435,
                      "mutability": "mutable",
                      "name": "bitPos",
                      "nodeType": "VariableDeclaration",
                      "scope": 6454,
                      "src": "1332:12:29",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      },
                      "typeName": {
                        "id": 6434,
                        "name": "uint8",
                        "nodeType": "ElementaryTypeName",
                        "src": "1332:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 6441,
                  "initialValue": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_int24",
                          "typeString": "int24"
                        },
                        "id": 6439,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 6437,
                          "name": "tick",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 6419,
                          "src": "1357:4:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "/",
                        "rightExpression": {
                          "id": 6438,
                          "name": "tickSpacing",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 6421,
                          "src": "1364:11:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          }
                        },
                        "src": "1357:18:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_int24",
                          "typeString": "int24"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_int24",
                          "typeString": "int24"
                        }
                      ],
                      "id": 6436,
                      "name": "position",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6412,
                      "src": "1348:8:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_pure$_t_int24_$returns$_t_int16_$_t_uint8_$",
                        "typeString": "function (int24) pure returns (int16,uint8)"
                      }
                    },
                    "id": 6440,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1348:28:29",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_int16_$_t_uint8_$",
                      "typeString": "tuple(int16,uint8)"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1316:60:29"
                },
                {
                  "assignments": [
                    6443
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6443,
                      "mutability": "mutable",
                      "name": "mask",
                      "nodeType": "VariableDeclaration",
                      "scope": 6454,
                      "src": "1386:12:29",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 6442,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "1386:7:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 6447,
                  "initialValue": {
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 6446,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "hexValue": "31",
                      "id": 6444,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "1401:1:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_1_by_1",
                        "typeString": "int_const 1"
                      },
                      "value": "1"
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<<",
                    "rightExpression": {
                      "id": 6445,
                      "name": "bitPos",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6435,
                      "src": "1406:6:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      }
                    },
                    "src": "1401:11:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1386:26:29"
                },
                {
                  "expression": {
                    "id": 6452,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "baseExpression": {
                        "id": 6448,
                        "name": "self",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6417,
                        "src": "1422:4:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_int16_$_t_uint256_$",
                          "typeString": "mapping(int16 => uint256)"
                        }
                      },
                      "id": 6450,
                      "indexExpression": {
                        "id": 6449,
                        "name": "wordPos",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6433,
                        "src": "1427:7:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_int16",
                          "typeString": "int16"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "1422:13:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "^=",
                    "rightHandSide": {
                      "id": 6451,
                      "name": "mask",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6443,
                      "src": "1439:4:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "1422:21:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 6453,
                  "nodeType": "ExpressionStatement",
                  "src": "1422:21:29"
                }
              ]
            },
            "documentation": {
              "id": 6413,
              "nodeType": "StructuredDocumentation",
              "src": "852:245:29",
              "text": "@notice Flips the initialized state for a given tick from false to true, or vice versa\n @param self The mapping in which to flip the tick\n @param tick The tick to flip\n @param tickSpacing The spacing between usable ticks"
            },
            "id": 6455,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "flipTick",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6422,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6417,
                  "mutability": "mutable",
                  "name": "self",
                  "nodeType": "VariableDeclaration",
                  "scope": 6455,
                  "src": "1129:38:29",
                  "stateVariable": false,
                  "storageLocation": "storage",
                  "typeDescriptions": {
                    "typeIdentifier": "t_mapping$_t_int16_$_t_uint256_$",
                    "typeString": "mapping(int16 => uint256)"
                  },
                  "typeName": {
                    "id": 6416,
                    "keyType": {
                      "id": 6414,
                      "name": "int16",
                      "nodeType": "ElementaryTypeName",
                      "src": "1137:5:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int16",
                        "typeString": "int16"
                      }
                    },
                    "nodeType": "Mapping",
                    "src": "1129:25:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_mapping$_t_int16_$_t_uint256_$",
                      "typeString": "mapping(int16 => uint256)"
                    },
                    "valueType": {
                      "id": 6415,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "1146:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6419,
                  "mutability": "mutable",
                  "name": "tick",
                  "nodeType": "VariableDeclaration",
                  "scope": 6455,
                  "src": "1177:10:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int24",
                    "typeString": "int24"
                  },
                  "typeName": {
                    "id": 6418,
                    "name": "int24",
                    "nodeType": "ElementaryTypeName",
                    "src": "1177:5:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int24",
                      "typeString": "int24"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6421,
                  "mutability": "mutable",
                  "name": "tickSpacing",
                  "nodeType": "VariableDeclaration",
                  "scope": 6455,
                  "src": "1197:17:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int24",
                    "typeString": "int24"
                  },
                  "typeName": {
                    "id": 6420,
                    "name": "int24",
                    "nodeType": "ElementaryTypeName",
                    "src": "1197:5:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int24",
                      "typeString": "int24"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1119:101:29"
            },
            "returnParameters": {
              "id": 6423,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1230:0:29"
            },
            "scope": 6635,
            "src": "1102:348:29",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6633,
              "nodeType": "Block",
              "src": "2402:1707:29",
              "statements": [
                {
                  "assignments": [
                    6474
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6474,
                      "mutability": "mutable",
                      "name": "compressed",
                      "nodeType": "VariableDeclaration",
                      "scope": 6633,
                      "src": "2412:16:29",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int24",
                        "typeString": "int24"
                      },
                      "typeName": {
                        "id": 6473,
                        "name": "int24",
                        "nodeType": "ElementaryTypeName",
                        "src": "2412:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_int24",
                          "typeString": "int24"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 6478,
                  "initialValue": {
                    "commonType": {
                      "typeIdentifier": "t_int24",
                      "typeString": "int24"
                    },
                    "id": 6477,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "id": 6475,
                      "name": "tick",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6462,
                      "src": "2431:4:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int24",
                        "typeString": "int24"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "/",
                    "rightExpression": {
                      "id": 6476,
                      "name": "tickSpacing",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6464,
                      "src": "2438:11:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int24",
                        "typeString": "int24"
                      }
                    },
                    "src": "2431:18:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int24",
                      "typeString": "int24"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "2412:37:29"
                },
                {
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 6487,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "commonType": {
                        "typeIdentifier": "t_int24",
                        "typeString": "int24"
                      },
                      "id": 6481,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "id": 6479,
                        "name": "tick",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6462,
                        "src": "2463:4:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_int24",
                          "typeString": "int24"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "<",
                      "rightExpression": {
                        "hexValue": "30",
                        "id": 6480,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2470:1:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      },
                      "src": "2463:8:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "&&",
                    "rightExpression": {
                      "commonType": {
                        "typeIdentifier": "t_int24",
                        "typeString": "int24"
                      },
                      "id": 6486,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "commonType": {
                          "typeIdentifier": "t_int24",
                          "typeString": "int24"
                        },
                        "id": 6484,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 6482,
                          "name": "tick",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 6462,
                          "src": "2475:4:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "%",
                        "rightExpression": {
                          "id": 6483,
                          "name": "tickSpacing",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 6464,
                          "src": "2482:11:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          }
                        },
                        "src": "2475:18:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_int24",
                          "typeString": "int24"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "!=",
                      "rightExpression": {
                        "hexValue": "30",
                        "id": 6485,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2497:1:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      },
                      "src": "2475:23:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "2463:35:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 6491,
                  "nodeType": "IfStatement",
                  "src": "2459:53:29",
                  "trueBody": {
                    "expression": {
                      "id": 6489,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "UnaryOperation",
                      "operator": "--",
                      "prefix": false,
                      "src": "2500:12:29",
                      "subExpression": {
                        "id": 6488,
                        "name": "compressed",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6474,
                        "src": "2500:10:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_int24",
                          "typeString": "int24"
                        }
                      },
                      "typeDescriptions": {
                        "typeIdentifier": "t_int24",
                        "typeString": "int24"
                      }
                    },
                    "id": 6490,
                    "nodeType": "ExpressionStatement",
                    "src": "2500:12:29"
                  }
                },
                {
                  "condition": {
                    "id": 6492,
                    "name": "lte",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 6466,
                    "src": "2562:3:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "id": 6631,
                    "nodeType": "Block",
                    "src": "3289:814:29",
                    "statements": [
                      {
                        "assignments": [
                          6559,
                          6561
                        ],
                        "declarations": [
                          {
                            "constant": false,
                            "id": 6559,
                            "mutability": "mutable",
                            "name": "wordPos",
                            "nodeType": "VariableDeclaration",
                            "scope": 6631,
                            "src": "3401:13:29",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_int16",
                              "typeString": "int16"
                            },
                            "typeName": {
                              "id": 6558,
                              "name": "int16",
                              "nodeType": "ElementaryTypeName",
                              "src": "3401:5:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_int16",
                                "typeString": "int16"
                              }
                            },
                            "visibility": "internal"
                          },
                          {
                            "constant": false,
                            "id": 6561,
                            "mutability": "mutable",
                            "name": "bitPos",
                            "nodeType": "VariableDeclaration",
                            "scope": 6631,
                            "src": "3416:12:29",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            },
                            "typeName": {
                              "id": 6560,
                              "name": "uint8",
                              "nodeType": "ElementaryTypeName",
                              "src": "3416:5:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint8",
                                "typeString": "uint8"
                              }
                            },
                            "visibility": "internal"
                          }
                        ],
                        "id": 6567,
                        "initialValue": {
                          "arguments": [
                            {
                              "commonType": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              },
                              "id": 6565,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "id": 6563,
                                "name": "compressed",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 6474,
                                "src": "3441:10:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_int24",
                                  "typeString": "int24"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "+",
                              "rightExpression": {
                                "hexValue": "31",
                                "id": 6564,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "3454:1:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_1_by_1",
                                  "typeString": "int_const 1"
                                },
                                "value": "1"
                              },
                              "src": "3441:14:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              }
                            ],
                            "id": 6562,
                            "name": "position",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6412,
                            "src": "3432:8:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_pure$_t_int24_$returns$_t_int16_$_t_uint8_$",
                              "typeString": "function (int24) pure returns (int16,uint8)"
                            }
                          },
                          "id": 6566,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "3432:24:29",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$_t_int16_$_t_uint8_$",
                            "typeString": "tuple(int16,uint8)"
                          }
                        },
                        "nodeType": "VariableDeclarationStatement",
                        "src": "3400:56:29"
                      },
                      {
                        "assignments": [
                          6569
                        ],
                        "declarations": [
                          {
                            "constant": false,
                            "id": 6569,
                            "mutability": "mutable",
                            "name": "mask",
                            "nodeType": "VariableDeclaration",
                            "scope": 6631,
                            "src": "3528:12:29",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            },
                            "typeName": {
                              "id": 6568,
                              "name": "uint256",
                              "nodeType": "ElementaryTypeName",
                              "src": "3528:7:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "visibility": "internal"
                          }
                        ],
                        "id": 6578,
                        "initialValue": {
                          "id": 6577,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "UnaryOperation",
                          "operator": "~",
                          "prefix": true,
                          "src": "3543:20:29",
                          "subExpression": {
                            "components": [
                              {
                                "commonType": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                "id": 6575,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "components": [
                                    {
                                      "commonType": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      },
                                      "id": 6572,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftExpression": {
                                        "hexValue": "31",
                                        "id": 6570,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": true,
                                        "kind": "number",
                                        "lValueRequested": false,
                                        "nodeType": "Literal",
                                        "src": "3546:1:29",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_rational_1_by_1",
                                          "typeString": "int_const 1"
                                        },
                                        "value": "1"
                                      },
                                      "nodeType": "BinaryOperation",
                                      "operator": "<<",
                                      "rightExpression": {
                                        "id": 6571,
                                        "name": "bitPos",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 6561,
                                        "src": "3551:6:29",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_uint8",
                                          "typeString": "uint8"
                                        }
                                      },
                                      "src": "3546:11:29",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      }
                                    }
                                  ],
                                  "id": 6573,
                                  "isConstant": false,
                                  "isInlineArray": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "nodeType": "TupleExpression",
                                  "src": "3545:13:29",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "-",
                                "rightExpression": {
                                  "hexValue": "31",
                                  "id": 6574,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "number",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "3561:1:29",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_rational_1_by_1",
                                    "typeString": "int_const 1"
                                  },
                                  "value": "1"
                                },
                                "src": "3545:17:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              }
                            ],
                            "id": 6576,
                            "isConstant": false,
                            "isInlineArray": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "TupleExpression",
                            "src": "3544:19:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "VariableDeclarationStatement",
                        "src": "3528:35:29"
                      },
                      {
                        "assignments": [
                          6580
                        ],
                        "declarations": [
                          {
                            "constant": false,
                            "id": 6580,
                            "mutability": "mutable",
                            "name": "masked",
                            "nodeType": "VariableDeclaration",
                            "scope": 6631,
                            "src": "3577:14:29",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            },
                            "typeName": {
                              "id": 6579,
                              "name": "uint256",
                              "nodeType": "ElementaryTypeName",
                              "src": "3577:7:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "visibility": "internal"
                          }
                        ],
                        "id": 6586,
                        "initialValue": {
                          "commonType": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          "id": 6585,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "baseExpression": {
                              "id": 6581,
                              "name": "self",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6460,
                              "src": "3594:4:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_int16_$_t_uint256_$",
                                "typeString": "mapping(int16 => uint256)"
                              }
                            },
                            "id": 6583,
                            "indexExpression": {
                              "id": 6582,
                              "name": "wordPos",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6559,
                              "src": "3599:7:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_int16",
                                "typeString": "int16"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "3594:13:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "id": 6584,
                            "name": "mask",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6569,
                            "src": "3610:4:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "3594:20:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "VariableDeclarationStatement",
                        "src": "3577:37:29"
                      },
                      {
                        "expression": {
                          "id": 6591,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 6587,
                            "name": "initialized",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6471,
                            "src": "3739:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bool",
                              "typeString": "bool"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "commonType": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            },
                            "id": 6590,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "leftExpression": {
                              "id": 6588,
                              "name": "masked",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6580,
                              "src": "3753:6:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "nodeType": "BinaryOperation",
                            "operator": "!=",
                            "rightExpression": {
                              "hexValue": "30",
                              "id": 6589,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "3763:1:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            },
                            "src": "3753:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bool",
                              "typeString": "bool"
                            }
                          },
                          "src": "3739:25:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "id": 6592,
                        "nodeType": "ExpressionStatement",
                        "src": "3739:25:29"
                      },
                      {
                        "expression": {
                          "id": 6629,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 6593,
                            "name": "next",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6469,
                            "src": "3888:4:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_int24",
                              "typeString": "int24"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "condition": {
                              "id": 6594,
                              "name": "initialized",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6471,
                              "src": "3895:11:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            },
                            "falseExpression": {
                              "commonType": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              },
                              "id": 6627,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "components": [
                                  {
                                    "commonType": {
                                      "typeIdentifier": "t_int24",
                                      "typeString": "int24"
                                    },
                                    "id": 6624,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "leftExpression": {
                                      "commonType": {
                                        "typeIdentifier": "t_int24",
                                        "typeString": "int24"
                                      },
                                      "id": 6613,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftExpression": {
                                        "id": 6611,
                                        "name": "compressed",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 6474,
                                        "src": "4029:10:29",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_int24",
                                          "typeString": "int24"
                                        }
                                      },
                                      "nodeType": "BinaryOperation",
                                      "operator": "+",
                                      "rightExpression": {
                                        "hexValue": "31",
                                        "id": 6612,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": true,
                                        "kind": "number",
                                        "lValueRequested": false,
                                        "nodeType": "Literal",
                                        "src": "4042:1:29",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_rational_1_by_1",
                                          "typeString": "int_const 1"
                                        },
                                        "value": "1"
                                      },
                                      "src": "4029:14:29",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_int24",
                                        "typeString": "int24"
                                      }
                                    },
                                    "nodeType": "BinaryOperation",
                                    "operator": "+",
                                    "rightExpression": {
                                      "arguments": [
                                        {
                                          "commonType": {
                                            "typeIdentifier": "t_uint8",
                                            "typeString": "uint8"
                                          },
                                          "id": 6622,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "leftExpression": {
                                            "expression": {
                                              "arguments": [
                                                {
                                                  "id": 6618,
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": true,
                                                  "lValueRequested": false,
                                                  "nodeType": "ElementaryTypeNameExpression",
                                                  "src": "4057:5:29",
                                                  "typeDescriptions": {
                                                    "typeIdentifier": "t_type$_t_uint8_$",
                                                    "typeString": "type(uint8)"
                                                  },
                                                  "typeName": {
                                                    "id": 6617,
                                                    "name": "uint8",
                                                    "nodeType": "ElementaryTypeName",
                                                    "src": "4057:5:29",
                                                    "typeDescriptions": {}
                                                  }
                                                }
                                              ],
                                              "expression": {
                                                "argumentTypes": [
                                                  {
                                                    "typeIdentifier": "t_type$_t_uint8_$",
                                                    "typeString": "type(uint8)"
                                                  }
                                                ],
                                                "id": 6616,
                                                "name": "type",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 4294967269,
                                                "src": "4052:4:29",
                                                "typeDescriptions": {
                                                  "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
                                                  "typeString": "function () pure"
                                                }
                                              },
                                              "id": 6619,
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "kind": "functionCall",
                                              "lValueRequested": false,
                                              "names": [],
                                              "nodeType": "FunctionCall",
                                              "src": "4052:11:29",
                                              "tryCall": false,
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_magic_meta_type_t_uint8",
                                                "typeString": "type(uint8)"
                                              }
                                            },
                                            "id": 6620,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": true,
                                            "lValueRequested": false,
                                            "memberName": "max",
                                            "nodeType": "MemberAccess",
                                            "src": "4052:15:29",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint8",
                                              "typeString": "uint8"
                                            }
                                          },
                                          "nodeType": "BinaryOperation",
                                          "operator": "-",
                                          "rightExpression": {
                                            "id": 6621,
                                            "name": "bitPos",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 6561,
                                            "src": "4070:6:29",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint8",
                                              "typeString": "uint8"
                                            }
                                          },
                                          "src": "4052:24:29",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_uint8",
                                            "typeString": "uint8"
                                          }
                                        }
                                      ],
                                      "expression": {
                                        "argumentTypes": [
                                          {
                                            "typeIdentifier": "t_uint8",
                                            "typeString": "uint8"
                                          }
                                        ],
                                        "id": 6615,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": true,
                                        "lValueRequested": false,
                                        "nodeType": "ElementaryTypeNameExpression",
                                        "src": "4046:5:29",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_type$_t_int24_$",
                                          "typeString": "type(int24)"
                                        },
                                        "typeName": {
                                          "id": 6614,
                                          "name": "int24",
                                          "nodeType": "ElementaryTypeName",
                                          "src": "4046:5:29",
                                          "typeDescriptions": {}
                                        }
                                      },
                                      "id": 6623,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "kind": "typeConversion",
                                      "lValueRequested": false,
                                      "names": [],
                                      "nodeType": "FunctionCall",
                                      "src": "4046:31:29",
                                      "tryCall": false,
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_int24",
                                        "typeString": "int24"
                                      }
                                    },
                                    "src": "4029:48:29",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_int24",
                                      "typeString": "int24"
                                    }
                                  }
                                ],
                                "id": 6625,
                                "isConstant": false,
                                "isInlineArray": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "TupleExpression",
                                "src": "4028:50:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_int24",
                                  "typeString": "int24"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "*",
                              "rightExpression": {
                                "id": 6626,
                                "name": "tickSpacing",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 6464,
                                "src": "4081:11:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_int24",
                                  "typeString": "int24"
                                }
                              },
                              "src": "4028:64:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              }
                            },
                            "id": 6628,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "Conditional",
                            "src": "3895:197:29",
                            "trueExpression": {
                              "commonType": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              },
                              "id": 6610,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "components": [
                                  {
                                    "commonType": {
                                      "typeIdentifier": "t_int24",
                                      "typeString": "int24"
                                    },
                                    "id": 6607,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "leftExpression": {
                                      "commonType": {
                                        "typeIdentifier": "t_int24",
                                        "typeString": "int24"
                                      },
                                      "id": 6597,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "leftExpression": {
                                        "id": 6595,
                                        "name": "compressed",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 6474,
                                        "src": "3926:10:29",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_int24",
                                          "typeString": "int24"
                                        }
                                      },
                                      "nodeType": "BinaryOperation",
                                      "operator": "+",
                                      "rightExpression": {
                                        "hexValue": "31",
                                        "id": 6596,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": true,
                                        "kind": "number",
                                        "lValueRequested": false,
                                        "nodeType": "Literal",
                                        "src": "3939:1:29",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_rational_1_by_1",
                                          "typeString": "int_const 1"
                                        },
                                        "value": "1"
                                      },
                                      "src": "3926:14:29",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_int24",
                                        "typeString": "int24"
                                      }
                                    },
                                    "nodeType": "BinaryOperation",
                                    "operator": "+",
                                    "rightExpression": {
                                      "arguments": [
                                        {
                                          "commonType": {
                                            "typeIdentifier": "t_uint8",
                                            "typeString": "uint8"
                                          },
                                          "id": 6605,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "leftExpression": {
                                            "arguments": [
                                              {
                                                "id": 6602,
                                                "name": "masked",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 6580,
                                                "src": "3977:6:29",
                                                "typeDescriptions": {
                                                  "typeIdentifier": "t_uint256",
                                                  "typeString": "uint256"
                                                }
                                              }
                                            ],
                                            "expression": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_uint256",
                                                  "typeString": "uint256"
                                                }
                                              ],
                                              "expression": {
                                                "id": 6600,
                                                "name": "BitMath",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 3800,
                                                "src": "3949:7:29",
                                                "typeDescriptions": {
                                                  "typeIdentifier": "t_type$_t_contract$_BitMath_$3800_$",
                                                  "typeString": "type(library BitMath)"
                                                }
                                              },
                                              "id": 6601,
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "memberName": "leastSignificantBit",
                                              "nodeType": "MemberAccess",
                                              "referencedDeclaration": 3799,
                                              "src": "3949:27:29",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint8_$",
                                                "typeString": "function (uint256) pure returns (uint8)"
                                              }
                                            },
                                            "id": 6603,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "kind": "functionCall",
                                            "lValueRequested": false,
                                            "names": [],
                                            "nodeType": "FunctionCall",
                                            "src": "3949:35:29",
                                            "tryCall": false,
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint8",
                                              "typeString": "uint8"
                                            }
                                          },
                                          "nodeType": "BinaryOperation",
                                          "operator": "-",
                                          "rightExpression": {
                                            "id": 6604,
                                            "name": "bitPos",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 6561,
                                            "src": "3987:6:29",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint8",
                                              "typeString": "uint8"
                                            }
                                          },
                                          "src": "3949:44:29",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_uint8",
                                            "typeString": "uint8"
                                          }
                                        }
                                      ],
                                      "expression": {
                                        "argumentTypes": [
                                          {
                                            "typeIdentifier": "t_uint8",
                                            "typeString": "uint8"
                                          }
                                        ],
                                        "id": 6599,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": true,
                                        "lValueRequested": false,
                                        "nodeType": "ElementaryTypeNameExpression",
                                        "src": "3943:5:29",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_type$_t_int24_$",
                                          "typeString": "type(int24)"
                                        },
                                        "typeName": {
                                          "id": 6598,
                                          "name": "int24",
                                          "nodeType": "ElementaryTypeName",
                                          "src": "3943:5:29",
                                          "typeDescriptions": {}
                                        }
                                      },
                                      "id": 6606,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "kind": "typeConversion",
                                      "lValueRequested": false,
                                      "names": [],
                                      "nodeType": "FunctionCall",
                                      "src": "3943:51:29",
                                      "tryCall": false,
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_int24",
                                        "typeString": "int24"
                                      }
                                    },
                                    "src": "3926:68:29",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_int24",
                                      "typeString": "int24"
                                    }
                                  }
                                ],
                                "id": 6608,
                                "isConstant": false,
                                "isInlineArray": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "TupleExpression",
                                "src": "3925:70:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_int24",
                                  "typeString": "int24"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "*",
                              "rightExpression": {
                                "id": 6609,
                                "name": "tickSpacing",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 6464,
                                "src": "3998:11:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_int24",
                                  "typeString": "int24"
                                }
                              },
                              "src": "3925:84:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              }
                            },
                            "typeDescriptions": {
                              "typeIdentifier": "t_int24",
                              "typeString": "int24"
                            }
                          },
                          "src": "3888:204:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          }
                        },
                        "id": 6630,
                        "nodeType": "ExpressionStatement",
                        "src": "3888:204:29"
                      }
                    ]
                  },
                  "id": 6632,
                  "nodeType": "IfStatement",
                  "src": "2558:1545:29",
                  "trueBody": {
                    "id": 6557,
                    "nodeType": "Block",
                    "src": "2567:716:29",
                    "statements": [
                      {
                        "assignments": [
                          6494,
                          6496
                        ],
                        "declarations": [
                          {
                            "constant": false,
                            "id": 6494,
                            "mutability": "mutable",
                            "name": "wordPos",
                            "nodeType": "VariableDeclaration",
                            "scope": 6557,
                            "src": "2582:13:29",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_int16",
                              "typeString": "int16"
                            },
                            "typeName": {
                              "id": 6493,
                              "name": "int16",
                              "nodeType": "ElementaryTypeName",
                              "src": "2582:5:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_int16",
                                "typeString": "int16"
                              }
                            },
                            "visibility": "internal"
                          },
                          {
                            "constant": false,
                            "id": 6496,
                            "mutability": "mutable",
                            "name": "bitPos",
                            "nodeType": "VariableDeclaration",
                            "scope": 6557,
                            "src": "2597:12:29",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            },
                            "typeName": {
                              "id": 6495,
                              "name": "uint8",
                              "nodeType": "ElementaryTypeName",
                              "src": "2597:5:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint8",
                                "typeString": "uint8"
                              }
                            },
                            "visibility": "internal"
                          }
                        ],
                        "id": 6500,
                        "initialValue": {
                          "arguments": [
                            {
                              "id": 6498,
                              "name": "compressed",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6474,
                              "src": "2622:10:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              }
                            ],
                            "id": 6497,
                            "name": "position",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6412,
                            "src": "2613:8:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_pure$_t_int24_$returns$_t_int16_$_t_uint8_$",
                              "typeString": "function (int24) pure returns (int16,uint8)"
                            }
                          },
                          "id": 6499,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "2613:20:29",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$_t_int16_$_t_uint8_$",
                            "typeString": "tuple(int16,uint8)"
                          }
                        },
                        "nodeType": "VariableDeclarationStatement",
                        "src": "2581:52:29"
                      },
                      {
                        "assignments": [
                          6502
                        ],
                        "declarations": [
                          {
                            "constant": false,
                            "id": 6502,
                            "mutability": "mutable",
                            "name": "mask",
                            "nodeType": "VariableDeclaration",
                            "scope": 6557,
                            "src": "2714:12:29",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            },
                            "typeName": {
                              "id": 6501,
                              "name": "uint256",
                              "nodeType": "ElementaryTypeName",
                              "src": "2714:7:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "visibility": "internal"
                          }
                        ],
                        "id": 6514,
                        "initialValue": {
                          "commonType": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          "id": 6513,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "commonType": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            },
                            "id": 6508,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "leftExpression": {
                              "components": [
                                {
                                  "commonType": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  "id": 6505,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "leftExpression": {
                                    "hexValue": "31",
                                    "id": 6503,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "kind": "number",
                                    "lValueRequested": false,
                                    "nodeType": "Literal",
                                    "src": "2730:1:29",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_rational_1_by_1",
                                      "typeString": "int_const 1"
                                    },
                                    "value": "1"
                                  },
                                  "nodeType": "BinaryOperation",
                                  "operator": "<<",
                                  "rightExpression": {
                                    "id": 6504,
                                    "name": "bitPos",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 6496,
                                    "src": "2735:6:29",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_uint8",
                                      "typeString": "uint8"
                                    }
                                  },
                                  "src": "2730:11:29",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                }
                              ],
                              "id": 6506,
                              "isConstant": false,
                              "isInlineArray": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "TupleExpression",
                              "src": "2729:13:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "nodeType": "BinaryOperation",
                            "operator": "-",
                            "rightExpression": {
                              "hexValue": "31",
                              "id": 6507,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "2745:1:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_1_by_1",
                                "typeString": "int_const 1"
                              },
                              "value": "1"
                            },
                            "src": "2729:17:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "+",
                          "rightExpression": {
                            "components": [
                              {
                                "commonType": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                "id": 6511,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "hexValue": "31",
                                  "id": 6509,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "number",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "2750:1:29",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_rational_1_by_1",
                                    "typeString": "int_const 1"
                                  },
                                  "value": "1"
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "<<",
                                "rightExpression": {
                                  "id": 6510,
                                  "name": "bitPos",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 6496,
                                  "src": "2755:6:29",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint8",
                                    "typeString": "uint8"
                                  }
                                },
                                "src": "2750:11:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              }
                            ],
                            "id": 6512,
                            "isConstant": false,
                            "isInlineArray": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "TupleExpression",
                            "src": "2749:13:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "2729:33:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "VariableDeclarationStatement",
                        "src": "2714:48:29"
                      },
                      {
                        "assignments": [
                          6516
                        ],
                        "declarations": [
                          {
                            "constant": false,
                            "id": 6516,
                            "mutability": "mutable",
                            "name": "masked",
                            "nodeType": "VariableDeclaration",
                            "scope": 6557,
                            "src": "2776:14:29",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            },
                            "typeName": {
                              "id": 6515,
                              "name": "uint256",
                              "nodeType": "ElementaryTypeName",
                              "src": "2776:7:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "visibility": "internal"
                          }
                        ],
                        "id": 6522,
                        "initialValue": {
                          "commonType": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          "id": 6521,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "baseExpression": {
                              "id": 6517,
                              "name": "self",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6460,
                              "src": "2793:4:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_int16_$_t_uint256_$",
                                "typeString": "mapping(int16 => uint256)"
                              }
                            },
                            "id": 6519,
                            "indexExpression": {
                              "id": 6518,
                              "name": "wordPos",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6494,
                              "src": "2798:7:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_int16",
                                "typeString": "int16"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "2793:13:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "&",
                          "rightExpression": {
                            "id": 6520,
                            "name": "mask",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6502,
                            "src": "2809:4:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "2793:20:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "VariableDeclarationStatement",
                        "src": "2776:37:29"
                      },
                      {
                        "expression": {
                          "id": 6527,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 6523,
                            "name": "initialized",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6471,
                            "src": "2946:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bool",
                              "typeString": "bool"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "commonType": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            },
                            "id": 6526,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "leftExpression": {
                              "id": 6524,
                              "name": "masked",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6516,
                              "src": "2960:6:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "nodeType": "BinaryOperation",
                            "operator": "!=",
                            "rightExpression": {
                              "hexValue": "30",
                              "id": 6525,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "2970:1:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            },
                            "src": "2960:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bool",
                              "typeString": "bool"
                            }
                          },
                          "src": "2946:25:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "id": 6528,
                        "nodeType": "ExpressionStatement",
                        "src": "2946:25:29"
                      },
                      {
                        "expression": {
                          "id": 6555,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 6529,
                            "name": "next",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6469,
                            "src": "3095:4:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_int24",
                              "typeString": "int24"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "condition": {
                              "id": 6530,
                              "name": "initialized",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 6471,
                              "src": "3102:11:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            },
                            "falseExpression": {
                              "commonType": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              },
                              "id": 6553,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "components": [
                                  {
                                    "commonType": {
                                      "typeIdentifier": "t_int24",
                                      "typeString": "int24"
                                    },
                                    "id": 6550,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "leftExpression": {
                                      "id": 6545,
                                      "name": "compressed",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 6474,
                                      "src": "3231:10:29",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_int24",
                                        "typeString": "int24"
                                      }
                                    },
                                    "nodeType": "BinaryOperation",
                                    "operator": "-",
                                    "rightExpression": {
                                      "arguments": [
                                        {
                                          "id": 6548,
                                          "name": "bitPos",
                                          "nodeType": "Identifier",
                                          "overloadedDeclarations": [],
                                          "referencedDeclaration": 6496,
                                          "src": "3250:6:29",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_uint8",
                                            "typeString": "uint8"
                                          }
                                        }
                                      ],
                                      "expression": {
                                        "argumentTypes": [
                                          {
                                            "typeIdentifier": "t_uint8",
                                            "typeString": "uint8"
                                          }
                                        ],
                                        "id": 6547,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": true,
                                        "lValueRequested": false,
                                        "nodeType": "ElementaryTypeNameExpression",
                                        "src": "3244:5:29",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_type$_t_int24_$",
                                          "typeString": "type(int24)"
                                        },
                                        "typeName": {
                                          "id": 6546,
                                          "name": "int24",
                                          "nodeType": "ElementaryTypeName",
                                          "src": "3244:5:29",
                                          "typeDescriptions": {}
                                        }
                                      },
                                      "id": 6549,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "kind": "typeConversion",
                                      "lValueRequested": false,
                                      "names": [],
                                      "nodeType": "FunctionCall",
                                      "src": "3244:13:29",
                                      "tryCall": false,
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_int24",
                                        "typeString": "int24"
                                      }
                                    },
                                    "src": "3231:26:29",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_int24",
                                      "typeString": "int24"
                                    }
                                  }
                                ],
                                "id": 6551,
                                "isConstant": false,
                                "isInlineArray": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "TupleExpression",
                                "src": "3230:28:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_int24",
                                  "typeString": "int24"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "*",
                              "rightExpression": {
                                "id": 6552,
                                "name": "tickSpacing",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 6464,
                                "src": "3261:11:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_int24",
                                  "typeString": "int24"
                                }
                              },
                              "src": "3230:42:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              }
                            },
                            "id": 6554,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "Conditional",
                            "src": "3102:170:29",
                            "trueExpression": {
                              "commonType": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              },
                              "id": 6544,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "components": [
                                  {
                                    "commonType": {
                                      "typeIdentifier": "t_int24",
                                      "typeString": "int24"
                                    },
                                    "id": 6541,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": false,
                                    "lValueRequested": false,
                                    "leftExpression": {
                                      "id": 6531,
                                      "name": "compressed",
                                      "nodeType": "Identifier",
                                      "overloadedDeclarations": [],
                                      "referencedDeclaration": 6474,
                                      "src": "3133:10:29",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_int24",
                                        "typeString": "int24"
                                      }
                                    },
                                    "nodeType": "BinaryOperation",
                                    "operator": "-",
                                    "rightExpression": {
                                      "arguments": [
                                        {
                                          "commonType": {
                                            "typeIdentifier": "t_uint8",
                                            "typeString": "uint8"
                                          },
                                          "id": 6539,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "leftExpression": {
                                            "id": 6534,
                                            "name": "bitPos",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 6496,
                                            "src": "3152:6:29",
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint8",
                                              "typeString": "uint8"
                                            }
                                          },
                                          "nodeType": "BinaryOperation",
                                          "operator": "-",
                                          "rightExpression": {
                                            "arguments": [
                                              {
                                                "id": 6537,
                                                "name": "masked",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 6516,
                                                "src": "3188:6:29",
                                                "typeDescriptions": {
                                                  "typeIdentifier": "t_uint256",
                                                  "typeString": "uint256"
                                                }
                                              }
                                            ],
                                            "expression": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_uint256",
                                                  "typeString": "uint256"
                                                }
                                              ],
                                              "expression": {
                                                "id": 6535,
                                                "name": "BitMath",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 3800,
                                                "src": "3161:7:29",
                                                "typeDescriptions": {
                                                  "typeIdentifier": "t_type$_t_contract$_BitMath_$3800_$",
                                                  "typeString": "type(library BitMath)"
                                                }
                                              },
                                              "id": 6536,
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "memberName": "mostSignificantBit",
                                              "nodeType": "MemberAccess",
                                              "referencedDeclaration": 3638,
                                              "src": "3161:26:29",
                                              "typeDescriptions": {
                                                "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint8_$",
                                                "typeString": "function (uint256) pure returns (uint8)"
                                              }
                                            },
                                            "id": 6538,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "kind": "functionCall",
                                            "lValueRequested": false,
                                            "names": [],
                                            "nodeType": "FunctionCall",
                                            "src": "3161:34:29",
                                            "tryCall": false,
                                            "typeDescriptions": {
                                              "typeIdentifier": "t_uint8",
                                              "typeString": "uint8"
                                            }
                                          },
                                          "src": "3152:43:29",
                                          "typeDescriptions": {
                                            "typeIdentifier": "t_uint8",
                                            "typeString": "uint8"
                                          }
                                        }
                                      ],
                                      "expression": {
                                        "argumentTypes": [
                                          {
                                            "typeIdentifier": "t_uint8",
                                            "typeString": "uint8"
                                          }
                                        ],
                                        "id": 6533,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": true,
                                        "lValueRequested": false,
                                        "nodeType": "ElementaryTypeNameExpression",
                                        "src": "3146:5:29",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_type$_t_int24_$",
                                          "typeString": "type(int24)"
                                        },
                                        "typeName": {
                                          "id": 6532,
                                          "name": "int24",
                                          "nodeType": "ElementaryTypeName",
                                          "src": "3146:5:29",
                                          "typeDescriptions": {}
                                        }
                                      },
                                      "id": 6540,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "kind": "typeConversion",
                                      "lValueRequested": false,
                                      "names": [],
                                      "nodeType": "FunctionCall",
                                      "src": "3146:50:29",
                                      "tryCall": false,
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_int24",
                                        "typeString": "int24"
                                      }
                                    },
                                    "src": "3133:63:29",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_int24",
                                      "typeString": "int24"
                                    }
                                  }
                                ],
                                "id": 6542,
                                "isConstant": false,
                                "isInlineArray": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "TupleExpression",
                                "src": "3132:65:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_int24",
                                  "typeString": "int24"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "*",
                              "rightExpression": {
                                "id": 6543,
                                "name": "tickSpacing",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 6464,
                                "src": "3200:11:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_int24",
                                  "typeString": "int24"
                                }
                              },
                              "src": "3132:79:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              }
                            },
                            "typeDescriptions": {
                              "typeIdentifier": "t_int24",
                              "typeString": "int24"
                            }
                          },
                          "src": "3095:177:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          }
                        },
                        "id": 6556,
                        "nodeType": "ExpressionStatement",
                        "src": "3095:177:29"
                      }
                    ]
                  }
                }
              ]
            },
            "documentation": {
              "id": 6456,
              "nodeType": "StructuredDocumentation",
              "src": "1456:727:29",
              "text": "@notice Returns the next initialized tick contained in the same word (or adjacent word) as the tick that is either\n to the left (less than or equal to) or right (greater than) of the given tick\n @param self The mapping in which to compute the next initialized tick\n @param tick The starting tick\n @param tickSpacing The spacing between usable ticks\n @param lte Whether to search for the next initialized tick to the left (less than or equal to the starting tick)\n @return next The next initialized or uninitialized tick up to 256 ticks away from the current tick\n @return initialized Whether the next tick is initialized, as the function only searches within up to 256 ticks"
            },
            "id": 6634,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "nextInitializedTickWithinOneWord",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6467,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6460,
                  "mutability": "mutable",
                  "name": "self",
                  "nodeType": "VariableDeclaration",
                  "scope": 6634,
                  "src": "2239:38:29",
                  "stateVariable": false,
                  "storageLocation": "storage",
                  "typeDescriptions": {
                    "typeIdentifier": "t_mapping$_t_int16_$_t_uint256_$",
                    "typeString": "mapping(int16 => uint256)"
                  },
                  "typeName": {
                    "id": 6459,
                    "keyType": {
                      "id": 6457,
                      "name": "int16",
                      "nodeType": "ElementaryTypeName",
                      "src": "2247:5:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int16",
                        "typeString": "int16"
                      }
                    },
                    "nodeType": "Mapping",
                    "src": "2239:25:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_mapping$_t_int16_$_t_uint256_$",
                      "typeString": "mapping(int16 => uint256)"
                    },
                    "valueType": {
                      "id": 6458,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "2256:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6462,
                  "mutability": "mutable",
                  "name": "tick",
                  "nodeType": "VariableDeclaration",
                  "scope": 6634,
                  "src": "2287:10:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int24",
                    "typeString": "int24"
                  },
                  "typeName": {
                    "id": 6461,
                    "name": "int24",
                    "nodeType": "ElementaryTypeName",
                    "src": "2287:5:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int24",
                      "typeString": "int24"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6464,
                  "mutability": "mutable",
                  "name": "tickSpacing",
                  "nodeType": "VariableDeclaration",
                  "scope": 6634,
                  "src": "2307:17:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int24",
                    "typeString": "int24"
                  },
                  "typeName": {
                    "id": 6463,
                    "name": "int24",
                    "nodeType": "ElementaryTypeName",
                    "src": "2307:5:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int24",
                      "typeString": "int24"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6466,
                  "mutability": "mutable",
                  "name": "lte",
                  "nodeType": "VariableDeclaration",
                  "scope": 6634,
                  "src": "2334:8:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 6465,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "2334:4:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2229:119:29"
            },
            "returnParameters": {
              "id": 6472,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6469,
                  "mutability": "mutable",
                  "name": "next",
                  "nodeType": "VariableDeclaration",
                  "scope": 6634,
                  "src": "2372:10:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int24",
                    "typeString": "int24"
                  },
                  "typeName": {
                    "id": 6468,
                    "name": "int24",
                    "nodeType": "ElementaryTypeName",
                    "src": "2372:5:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int24",
                      "typeString": "int24"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6471,
                  "mutability": "mutable",
                  "name": "initialized",
                  "nodeType": "VariableDeclaration",
                  "scope": 6634,
                  "src": "2384:16:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 6470,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "2384:4:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2371:30:29"
            },
            "scope": 6635,
            "src": "2188:1921:29",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          }
        ],
        "scope": 6636,
        "src": "331:3780:29"
      }
    ],
    "src": "37:4075:29"
  },
  "legacyAST": {
    "attributes": {
      "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/TickBitmap.sol",
      "exportedSymbols": {
        "BitMath": [
          3800
        ],
        "TickBitmap": [
          6635
        ]
      },
      "license": "BUSL-1.1"
    },
    "children": [
      {
        "attributes": {
          "literals": [
            "solidity",
            ">=",
            "0.5",
            ".0"
          ]
        },
        "id": 6381,
        "name": "PragmaDirective",
        "src": "37:24:29"
      },
      {
        "attributes": {
          "SourceUnit": 3801,
          "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/BitMath.sol",
          "file": "./BitMath.sol",
          "scope": 6636,
          "symbolAliases": [
            null
          ],
          "unitAlias": ""
        },
        "id": 6382,
        "name": "ImportDirective",
        "src": "63:23:29"
      },
      {
        "attributes": {
          "abstract": false,
          "baseContracts": [
            null
          ],
          "contractDependencies": [
            null
          ],
          "contractKind": "library",
          "fullyImplemented": true,
          "linearizedBaseContracts": [
            6635
          ],
          "name": "TickBitmap",
          "scope": 6636
        },
        "children": [
          {
            "attributes": {
              "text": "@title Packed tick initialized state library\n @notice Stores a packed mapping of tick index to its initialized state\n @dev The mapping uses int16 for keys since ticks are represented as int24 and there are 256 (2^8) values per word."
            },
            "id": 6383,
            "name": "StructuredDocumentation",
            "src": "88:243:29"
          },
          {
            "attributes": {
              "implemented": true,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "position",
              "scope": 6635,
              "stateMutability": "pure",
              "virtual": false,
              "visibility": "private"
            },
            "children": [
              {
                "attributes": {
                  "text": "@notice Computes the position in the mapping where the initialized bit for a tick lives\n @param tick The tick for which to compute the position\n @return wordPos The key in the mapping containing the word in which the bit is stored\n @return bitPos The bit position in the word where the flag is stored"
                },
                "id": 6384,
                "name": "StructuredDocumentation",
                "src": "356:325:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "tick",
                      "scope": 6412,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "int24",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "int24",
                          "type": "int24"
                        },
                        "id": 6385,
                        "name": "ElementaryTypeName",
                        "src": "704:5:29"
                      }
                    ],
                    "id": 6386,
                    "name": "VariableDeclaration",
                    "src": "704:10:29"
                  }
                ],
                "id": 6387,
                "name": "ParameterList",
                "src": "703:12:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "wordPos",
                      "scope": 6412,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "int16",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "int16",
                          "type": "int16"
                        },
                        "id": 6388,
                        "name": "ElementaryTypeName",
                        "src": "738:5:29"
                      }
                    ],
                    "id": 6389,
                    "name": "VariableDeclaration",
                    "src": "738:13:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "bitPos",
                      "scope": 6412,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint8",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint8",
                          "type": "uint8"
                        },
                        "id": 6390,
                        "name": "ElementaryTypeName",
                        "src": "753:5:29"
                      }
                    ],
                    "id": 6391,
                    "name": "VariableDeclaration",
                    "src": "753:12:29"
                  }
                ],
                "id": 6392,
                "name": "ParameterList",
                "src": "737:29:29"
              },
              {
                "children": [
                  {
                    "children": [
                      {
                        "attributes": {
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "=",
                          "type": "int16"
                        },
                        "children": [
                          {
                            "attributes": {
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 6389,
                              "type": "int16",
                              "value": "wordPos"
                            },
                            "id": 6393,
                            "name": "Identifier",
                            "src": "777:7:29"
                          },
                          {
                            "attributes": {
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "isStructConstructorCall": false,
                              "lValueRequested": false,
                              "names": [
                                null
                              ],
                              "tryCall": false,
                              "type": "int16",
                              "type_conversion": true
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_int24",
                                      "typeString": "int24"
                                    }
                                  ],
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "type": "type(int16)"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "name": "int16"
                                    },
                                    "id": 6394,
                                    "name": "ElementaryTypeName",
                                    "src": "787:5:29"
                                  }
                                ],
                                "id": 6395,
                                "name": "ElementaryTypeNameExpression",
                                "src": "787:5:29"
                              },
                              {
                                "attributes": {
                                  "commonType": {
                                    "typeIdentifier": "t_int24",
                                    "typeString": "int24"
                                  },
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": ">>",
                                  "type": "int24"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6386,
                                      "type": "int24",
                                      "value": "tick"
                                    },
                                    "id": 6396,
                                    "name": "Identifier",
                                    "src": "793:4:29"
                                  },
                                  {
                                    "attributes": {
                                      "hexvalue": "38",
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "lValueRequested": false,
                                      "token": "number",
                                      "type": "int_const 8",
                                      "value": "8"
                                    },
                                    "id": 6397,
                                    "name": "Literal",
                                    "src": "801:1:29"
                                  }
                                ],
                                "id": 6398,
                                "name": "BinaryOperation",
                                "src": "793:9:29"
                              }
                            ],
                            "id": 6399,
                            "name": "FunctionCall",
                            "src": "787:16:29"
                          }
                        ],
                        "id": 6400,
                        "name": "Assignment",
                        "src": "777:26:29"
                      }
                    ],
                    "id": 6401,
                    "name": "ExpressionStatement",
                    "src": "777:26:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "=",
                          "type": "uint8"
                        },
                        "children": [
                          {
                            "attributes": {
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 6391,
                              "type": "uint8",
                              "value": "bitPos"
                            },
                            "id": 6402,
                            "name": "Identifier",
                            "src": "813:6:29"
                          },
                          {
                            "attributes": {
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "isStructConstructorCall": false,
                              "lValueRequested": false,
                              "names": [
                                null
                              ],
                              "tryCall": false,
                              "type": "uint8",
                              "type_conversion": true
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_int24",
                                      "typeString": "int24"
                                    }
                                  ],
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "type": "type(uint8)"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "name": "uint8"
                                    },
                                    "id": 6403,
                                    "name": "ElementaryTypeName",
                                    "src": "822:5:29"
                                  }
                                ],
                                "id": 6404,
                                "name": "ElementaryTypeNameExpression",
                                "src": "822:5:29"
                              },
                              {
                                "attributes": {
                                  "commonType": {
                                    "typeIdentifier": "t_int24",
                                    "typeString": "int24"
                                  },
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "%",
                                  "type": "int24"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6386,
                                      "type": "int24",
                                      "value": "tick"
                                    },
                                    "id": 6405,
                                    "name": "Identifier",
                                    "src": "828:4:29"
                                  },
                                  {
                                    "attributes": {
                                      "hexvalue": "323536",
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "lValueRequested": false,
                                      "token": "number",
                                      "type": "int_const 256",
                                      "value": "256"
                                    },
                                    "id": 6406,
                                    "name": "Literal",
                                    "src": "835:3:29"
                                  }
                                ],
                                "id": 6407,
                                "name": "BinaryOperation",
                                "src": "828:10:29"
                              }
                            ],
                            "id": 6408,
                            "name": "FunctionCall",
                            "src": "822:17:29"
                          }
                        ],
                        "id": 6409,
                        "name": "Assignment",
                        "src": "813:26:29"
                      }
                    ],
                    "id": 6410,
                    "name": "ExpressionStatement",
                    "src": "813:26:29"
                  }
                ],
                "id": 6411,
                "name": "Block",
                "src": "767:79:29"
              }
            ],
            "id": 6412,
            "name": "FunctionDefinition",
            "src": "686:160:29"
          },
          {
            "attributes": {
              "implemented": true,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "flipTick",
              "scope": 6635,
              "stateMutability": "nonpayable",
              "virtual": false,
              "visibility": "internal"
            },
            "children": [
              {
                "attributes": {
                  "text": "@notice Flips the initialized state for a given tick from false to true, or vice versa\n @param self The mapping in which to flip the tick\n @param tick The tick to flip\n @param tickSpacing The spacing between usable ticks"
                },
                "id": 6413,
                "name": "StructuredDocumentation",
                "src": "852:245:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "self",
                      "scope": 6455,
                      "stateVariable": false,
                      "storageLocation": "storage",
                      "type": "mapping(int16 => uint256)",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "type": "mapping(int16 => uint256)"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "int16",
                              "type": "int16"
                            },
                            "id": 6414,
                            "name": "ElementaryTypeName",
                            "src": "1137:5:29"
                          },
                          {
                            "attributes": {
                              "name": "uint256",
                              "type": "uint256"
                            },
                            "id": 6415,
                            "name": "ElementaryTypeName",
                            "src": "1146:7:29"
                          }
                        ],
                        "id": 6416,
                        "name": "Mapping",
                        "src": "1129:25:29"
                      }
                    ],
                    "id": 6417,
                    "name": "VariableDeclaration",
                    "src": "1129:38:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "tick",
                      "scope": 6455,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "int24",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "int24",
                          "type": "int24"
                        },
                        "id": 6418,
                        "name": "ElementaryTypeName",
                        "src": "1177:5:29"
                      }
                    ],
                    "id": 6419,
                    "name": "VariableDeclaration",
                    "src": "1177:10:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "tickSpacing",
                      "scope": 6455,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "int24",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "int24",
                          "type": "int24"
                        },
                        "id": 6420,
                        "name": "ElementaryTypeName",
                        "src": "1197:5:29"
                      }
                    ],
                    "id": 6421,
                    "name": "VariableDeclaration",
                    "src": "1197:17:29"
                  }
                ],
                "id": 6422,
                "name": "ParameterList",
                "src": "1119:101:29"
              },
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 6423,
                "name": "ParameterList",
                "src": "1230:0:29"
              },
              {
                "children": [
                  {
                    "children": [
                      {
                        "attributes": {
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "tryCall": false,
                          "type": "tuple()",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              ],
                              "overloadedDeclarations": [
                                4294967278,
                                4294967278
                              ],
                              "referencedDeclaration": 4294967278,
                              "type": "function (bool) pure",
                              "value": "require"
                            },
                            "id": 6424,
                            "name": "Identifier",
                            "src": "1240:7:29"
                          },
                          {
                            "attributes": {
                              "commonType": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              },
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "operator": "==",
                              "type": "bool"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "commonType": {
                                    "typeIdentifier": "t_int24",
                                    "typeString": "int24"
                                  },
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "%",
                                  "type": "int24"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6419,
                                      "type": "int24",
                                      "value": "tick"
                                    },
                                    "id": 6425,
                                    "name": "Identifier",
                                    "src": "1248:4:29"
                                  },
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6421,
                                      "type": "int24",
                                      "value": "tickSpacing"
                                    },
                                    "id": 6426,
                                    "name": "Identifier",
                                    "src": "1255:11:29"
                                  }
                                ],
                                "id": 6427,
                                "name": "BinaryOperation",
                                "src": "1248:18:29"
                              },
                              {
                                "attributes": {
                                  "hexvalue": "30",
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "token": "number",
                                  "type": "int_const 0",
                                  "value": "0"
                                },
                                "id": 6428,
                                "name": "Literal",
                                "src": "1270:1:29"
                              }
                            ],
                            "id": 6429,
                            "name": "BinaryOperation",
                            "src": "1248:23:29"
                          }
                        ],
                        "id": 6430,
                        "name": "FunctionCall",
                        "src": "1240:32:29"
                      }
                    ],
                    "id": 6431,
                    "name": "ExpressionStatement",
                    "src": "1240:32:29"
                  },
                  {
                    "attributes": {
                      "assignments": [
                        6433,
                        6435
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "mutability": "mutable",
                          "name": "wordPos",
                          "scope": 6454,
                          "stateVariable": false,
                          "storageLocation": "default",
                          "type": "int16",
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "int16",
                              "type": "int16"
                            },
                            "id": 6432,
                            "name": "ElementaryTypeName",
                            "src": "1317:5:29"
                          }
                        ],
                        "id": 6433,
                        "name": "VariableDeclaration",
                        "src": "1317:13:29"
                      },
                      {
                        "attributes": {
                          "constant": false,
                          "mutability": "mutable",
                          "name": "bitPos",
                          "scope": 6454,
                          "stateVariable": false,
                          "storageLocation": "default",
                          "type": "uint8",
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "uint8",
                              "type": "uint8"
                            },
                            "id": 6434,
                            "name": "ElementaryTypeName",
                            "src": "1332:5:29"
                          }
                        ],
                        "id": 6435,
                        "name": "VariableDeclaration",
                        "src": "1332:12:29"
                      },
                      {
                        "attributes": {
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "tryCall": false,
                          "type": "tuple(int16,uint8)",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_int24",
                                  "typeString": "int24"
                                }
                              ],
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 6412,
                              "type": "function (int24) pure returns (int16,uint8)",
                              "value": "position"
                            },
                            "id": 6436,
                            "name": "Identifier",
                            "src": "1348:8:29"
                          },
                          {
                            "attributes": {
                              "commonType": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              },
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "operator": "/",
                              "type": "int24"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 6419,
                                  "type": "int24",
                                  "value": "tick"
                                },
                                "id": 6437,
                                "name": "Identifier",
                                "src": "1357:4:29"
                              },
                              {
                                "attributes": {
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 6421,
                                  "type": "int24",
                                  "value": "tickSpacing"
                                },
                                "id": 6438,
                                "name": "Identifier",
                                "src": "1364:11:29"
                              }
                            ],
                            "id": 6439,
                            "name": "BinaryOperation",
                            "src": "1357:18:29"
                          }
                        ],
                        "id": 6440,
                        "name": "FunctionCall",
                        "src": "1348:28:29"
                      }
                    ],
                    "id": 6441,
                    "name": "VariableDeclarationStatement",
                    "src": "1316:60:29"
                  },
                  {
                    "attributes": {
                      "assignments": [
                        6443
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "mutability": "mutable",
                          "name": "mask",
                          "scope": 6454,
                          "stateVariable": false,
                          "storageLocation": "default",
                          "type": "uint256",
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "uint256",
                              "type": "uint256"
                            },
                            "id": 6442,
                            "name": "ElementaryTypeName",
                            "src": "1386:7:29"
                          }
                        ],
                        "id": 6443,
                        "name": "VariableDeclaration",
                        "src": "1386:12:29"
                      },
                      {
                        "attributes": {
                          "commonType": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "<<",
                          "type": "uint256"
                        },
                        "children": [
                          {
                            "attributes": {
                              "hexvalue": "31",
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "token": "number",
                              "type": "int_const 1",
                              "value": "1"
                            },
                            "id": 6444,
                            "name": "Literal",
                            "src": "1401:1:29"
                          },
                          {
                            "attributes": {
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 6435,
                              "type": "uint8",
                              "value": "bitPos"
                            },
                            "id": 6445,
                            "name": "Identifier",
                            "src": "1406:6:29"
                          }
                        ],
                        "id": 6446,
                        "name": "BinaryOperation",
                        "src": "1401:11:29"
                      }
                    ],
                    "id": 6447,
                    "name": "VariableDeclarationStatement",
                    "src": "1386:26:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "^=",
                          "type": "uint256"
                        },
                        "children": [
                          {
                            "attributes": {
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": true,
                              "type": "uint256"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 6417,
                                  "type": "mapping(int16 => uint256)",
                                  "value": "self"
                                },
                                "id": 6448,
                                "name": "Identifier",
                                "src": "1422:4:29"
                              },
                              {
                                "attributes": {
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 6433,
                                  "type": "int16",
                                  "value": "wordPos"
                                },
                                "id": 6449,
                                "name": "Identifier",
                                "src": "1427:7:29"
                              }
                            ],
                            "id": 6450,
                            "name": "IndexAccess",
                            "src": "1422:13:29"
                          },
                          {
                            "attributes": {
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 6443,
                              "type": "uint256",
                              "value": "mask"
                            },
                            "id": 6451,
                            "name": "Identifier",
                            "src": "1439:4:29"
                          }
                        ],
                        "id": 6452,
                        "name": "Assignment",
                        "src": "1422:21:29"
                      }
                    ],
                    "id": 6453,
                    "name": "ExpressionStatement",
                    "src": "1422:21:29"
                  }
                ],
                "id": 6454,
                "name": "Block",
                "src": "1230:220:29"
              }
            ],
            "id": 6455,
            "name": "FunctionDefinition",
            "src": "1102:348:29"
          },
          {
            "attributes": {
              "implemented": true,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "nextInitializedTickWithinOneWord",
              "scope": 6635,
              "stateMutability": "view",
              "virtual": false,
              "visibility": "internal"
            },
            "children": [
              {
                "attributes": {
                  "text": "@notice Returns the next initialized tick contained in the same word (or adjacent word) as the tick that is either\n to the left (less than or equal to) or right (greater than) of the given tick\n @param self The mapping in which to compute the next initialized tick\n @param tick The starting tick\n @param tickSpacing The spacing between usable ticks\n @param lte Whether to search for the next initialized tick to the left (less than or equal to the starting tick)\n @return next The next initialized or uninitialized tick up to 256 ticks away from the current tick\n @return initialized Whether the next tick is initialized, as the function only searches within up to 256 ticks"
                },
                "id": 6456,
                "name": "StructuredDocumentation",
                "src": "1456:727:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "self",
                      "scope": 6634,
                      "stateVariable": false,
                      "storageLocation": "storage",
                      "type": "mapping(int16 => uint256)",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "type": "mapping(int16 => uint256)"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "int16",
                              "type": "int16"
                            },
                            "id": 6457,
                            "name": "ElementaryTypeName",
                            "src": "2247:5:29"
                          },
                          {
                            "attributes": {
                              "name": "uint256",
                              "type": "uint256"
                            },
                            "id": 6458,
                            "name": "ElementaryTypeName",
                            "src": "2256:7:29"
                          }
                        ],
                        "id": 6459,
                        "name": "Mapping",
                        "src": "2239:25:29"
                      }
                    ],
                    "id": 6460,
                    "name": "VariableDeclaration",
                    "src": "2239:38:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "tick",
                      "scope": 6634,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "int24",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "int24",
                          "type": "int24"
                        },
                        "id": 6461,
                        "name": "ElementaryTypeName",
                        "src": "2287:5:29"
                      }
                    ],
                    "id": 6462,
                    "name": "VariableDeclaration",
                    "src": "2287:10:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "tickSpacing",
                      "scope": 6634,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "int24",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "int24",
                          "type": "int24"
                        },
                        "id": 6463,
                        "name": "ElementaryTypeName",
                        "src": "2307:5:29"
                      }
                    ],
                    "id": 6464,
                    "name": "VariableDeclaration",
                    "src": "2307:17:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "lte",
                      "scope": 6634,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bool",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bool",
                          "type": "bool"
                        },
                        "id": 6465,
                        "name": "ElementaryTypeName",
                        "src": "2334:4:29"
                      }
                    ],
                    "id": 6466,
                    "name": "VariableDeclaration",
                    "src": "2334:8:29"
                  }
                ],
                "id": 6467,
                "name": "ParameterList",
                "src": "2229:119:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "next",
                      "scope": 6634,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "int24",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "int24",
                          "type": "int24"
                        },
                        "id": 6468,
                        "name": "ElementaryTypeName",
                        "src": "2372:5:29"
                      }
                    ],
                    "id": 6469,
                    "name": "VariableDeclaration",
                    "src": "2372:10:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "initialized",
                      "scope": 6634,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bool",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bool",
                          "type": "bool"
                        },
                        "id": 6470,
                        "name": "ElementaryTypeName",
                        "src": "2384:4:29"
                      }
                    ],
                    "id": 6471,
                    "name": "VariableDeclaration",
                    "src": "2384:16:29"
                  }
                ],
                "id": 6472,
                "name": "ParameterList",
                "src": "2371:30:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "assignments": [
                        6474
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "mutability": "mutable",
                          "name": "compressed",
                          "scope": 6633,
                          "stateVariable": false,
                          "storageLocation": "default",
                          "type": "int24",
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "int24",
                              "type": "int24"
                            },
                            "id": 6473,
                            "name": "ElementaryTypeName",
                            "src": "2412:5:29"
                          }
                        ],
                        "id": 6474,
                        "name": "VariableDeclaration",
                        "src": "2412:16:29"
                      },
                      {
                        "attributes": {
                          "commonType": {
                            "typeIdentifier": "t_int24",
                            "typeString": "int24"
                          },
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "/",
                          "type": "int24"
                        },
                        "children": [
                          {
                            "attributes": {
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 6462,
                              "type": "int24",
                              "value": "tick"
                            },
                            "id": 6475,
                            "name": "Identifier",
                            "src": "2431:4:29"
                          },
                          {
                            "attributes": {
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 6464,
                              "type": "int24",
                              "value": "tickSpacing"
                            },
                            "id": 6476,
                            "name": "Identifier",
                            "src": "2438:11:29"
                          }
                        ],
                        "id": 6477,
                        "name": "BinaryOperation",
                        "src": "2431:18:29"
                      }
                    ],
                    "id": 6478,
                    "name": "VariableDeclarationStatement",
                    "src": "2412:37:29"
                  },
                  {
                    "attributes": {},
                    "children": [
                      {
                        "attributes": {
                          "commonType": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          },
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "&&",
                          "type": "bool"
                        },
                        "children": [
                          {
                            "attributes": {
                              "commonType": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              },
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "operator": "<",
                              "type": "bool"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 6462,
                                  "type": "int24",
                                  "value": "tick"
                                },
                                "id": 6479,
                                "name": "Identifier",
                                "src": "2463:4:29"
                              },
                              {
                                "attributes": {
                                  "hexvalue": "30",
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "token": "number",
                                  "type": "int_const 0",
                                  "value": "0"
                                },
                                "id": 6480,
                                "name": "Literal",
                                "src": "2470:1:29"
                              }
                            ],
                            "id": 6481,
                            "name": "BinaryOperation",
                            "src": "2463:8:29"
                          },
                          {
                            "attributes": {
                              "commonType": {
                                "typeIdentifier": "t_int24",
                                "typeString": "int24"
                              },
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "operator": "!=",
                              "type": "bool"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "commonType": {
                                    "typeIdentifier": "t_int24",
                                    "typeString": "int24"
                                  },
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "%",
                                  "type": "int24"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6462,
                                      "type": "int24",
                                      "value": "tick"
                                    },
                                    "id": 6482,
                                    "name": "Identifier",
                                    "src": "2475:4:29"
                                  },
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6464,
                                      "type": "int24",
                                      "value": "tickSpacing"
                                    },
                                    "id": 6483,
                                    "name": "Identifier",
                                    "src": "2482:11:29"
                                  }
                                ],
                                "id": 6484,
                                "name": "BinaryOperation",
                                "src": "2475:18:29"
                              },
                              {
                                "attributes": {
                                  "hexvalue": "30",
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "token": "number",
                                  "type": "int_const 0",
                                  "value": "0"
                                },
                                "id": 6485,
                                "name": "Literal",
                                "src": "2497:1:29"
                              }
                            ],
                            "id": 6486,
                            "name": "BinaryOperation",
                            "src": "2475:23:29"
                          }
                        ],
                        "id": 6487,
                        "name": "BinaryOperation",
                        "src": "2463:35:29"
                      },
                      {
                        "children": [
                          {
                            "attributes": {
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "operator": "--",
                              "prefix": false,
                              "type": "int24"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 6474,
                                  "type": "int24",
                                  "value": "compressed"
                                },
                                "id": 6488,
                                "name": "Identifier",
                                "src": "2500:10:29"
                              }
                            ],
                            "id": 6489,
                            "name": "UnaryOperation",
                            "src": "2500:12:29"
                          }
                        ],
                        "id": 6490,
                        "name": "ExpressionStatement",
                        "src": "2500:12:29"
                      }
                    ],
                    "id": 6491,
                    "name": "IfStatement",
                    "src": "2459:53:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "overloadedDeclarations": [
                            null
                          ],
                          "referencedDeclaration": 6466,
                          "type": "bool",
                          "value": "lte"
                        },
                        "id": 6492,
                        "name": "Identifier",
                        "src": "2562:3:29"
                      },
                      {
                        "children": [
                          {
                            "attributes": {
                              "assignments": [
                                6494,
                                6496
                              ]
                            },
                            "children": [
                              {
                                "attributes": {
                                  "constant": false,
                                  "mutability": "mutable",
                                  "name": "wordPos",
                                  "scope": 6557,
                                  "stateVariable": false,
                                  "storageLocation": "default",
                                  "type": "int16",
                                  "visibility": "internal"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "name": "int16",
                                      "type": "int16"
                                    },
                                    "id": 6493,
                                    "name": "ElementaryTypeName",
                                    "src": "2582:5:29"
                                  }
                                ],
                                "id": 6494,
                                "name": "VariableDeclaration",
                                "src": "2582:13:29"
                              },
                              {
                                "attributes": {
                                  "constant": false,
                                  "mutability": "mutable",
                                  "name": "bitPos",
                                  "scope": 6557,
                                  "stateVariable": false,
                                  "storageLocation": "default",
                                  "type": "uint8",
                                  "visibility": "internal"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "name": "uint8",
                                      "type": "uint8"
                                    },
                                    "id": 6495,
                                    "name": "ElementaryTypeName",
                                    "src": "2597:5:29"
                                  }
                                ],
                                "id": 6496,
                                "name": "VariableDeclaration",
                                "src": "2597:12:29"
                              },
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "isStructConstructorCall": false,
                                  "lValueRequested": false,
                                  "names": [
                                    null
                                  ],
                                  "tryCall": false,
                                  "type": "tuple(int16,uint8)",
                                  "type_conversion": false
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_int24",
                                          "typeString": "int24"
                                        }
                                      ],
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6412,
                                      "type": "function (int24) pure returns (int16,uint8)",
                                      "value": "position"
                                    },
                                    "id": 6497,
                                    "name": "Identifier",
                                    "src": "2613:8:29"
                                  },
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6474,
                                      "type": "int24",
                                      "value": "compressed"
                                    },
                                    "id": 6498,
                                    "name": "Identifier",
                                    "src": "2622:10:29"
                                  }
                                ],
                                "id": 6499,
                                "name": "FunctionCall",
                                "src": "2613:20:29"
                              }
                            ],
                            "id": 6500,
                            "name": "VariableDeclarationStatement",
                            "src": "2581:52:29"
                          },
                          {
                            "attributes": {
                              "assignments": [
                                6502
                              ]
                            },
                            "children": [
                              {
                                "attributes": {
                                  "constant": false,
                                  "mutability": "mutable",
                                  "name": "mask",
                                  "scope": 6557,
                                  "stateVariable": false,
                                  "storageLocation": "default",
                                  "type": "uint256",
                                  "visibility": "internal"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "name": "uint256",
                                      "type": "uint256"
                                    },
                                    "id": 6501,
                                    "name": "ElementaryTypeName",
                                    "src": "2714:7:29"
                                  }
                                ],
                                "id": 6502,
                                "name": "VariableDeclaration",
                                "src": "2714:12:29"
                              },
                              {
                                "attributes": {
                                  "commonType": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "+",
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "commonType": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      },
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "operator": "-",
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isInlineArray": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "type": "uint256"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "commonType": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                              },
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "operator": "<<",
                                              "type": "uint256"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "hexvalue": "31",
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": true,
                                                  "lValueRequested": false,
                                                  "token": "number",
                                                  "type": "int_const 1",
                                                  "value": "1"
                                                },
                                                "id": 6503,
                                                "name": "Literal",
                                                "src": "2730:1:29"
                                              },
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 6496,
                                                  "type": "uint8",
                                                  "value": "bitPos"
                                                },
                                                "id": 6504,
                                                "name": "Identifier",
                                                "src": "2735:6:29"
                                              }
                                            ],
                                            "id": 6505,
                                            "name": "BinaryOperation",
                                            "src": "2730:11:29"
                                          }
                                        ],
                                        "id": 6506,
                                        "name": "TupleExpression",
                                        "src": "2729:13:29"
                                      },
                                      {
                                        "attributes": {
                                          "hexvalue": "31",
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": true,
                                          "lValueRequested": false,
                                          "token": "number",
                                          "type": "int_const 1",
                                          "value": "1"
                                        },
                                        "id": 6507,
                                        "name": "Literal",
                                        "src": "2745:1:29"
                                      }
                                    ],
                                    "id": 6508,
                                    "name": "BinaryOperation",
                                    "src": "2729:17:29"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isInlineArray": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "commonType": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          },
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "<<",
                                          "type": "uint256"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "hexvalue": "31",
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "token": "number",
                                              "type": "int_const 1",
                                              "value": "1"
                                            },
                                            "id": 6509,
                                            "name": "Literal",
                                            "src": "2750:1:29"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 6496,
                                              "type": "uint8",
                                              "value": "bitPos"
                                            },
                                            "id": 6510,
                                            "name": "Identifier",
                                            "src": "2755:6:29"
                                          }
                                        ],
                                        "id": 6511,
                                        "name": "BinaryOperation",
                                        "src": "2750:11:29"
                                      }
                                    ],
                                    "id": 6512,
                                    "name": "TupleExpression",
                                    "src": "2749:13:29"
                                  }
                                ],
                                "id": 6513,
                                "name": "BinaryOperation",
                                "src": "2729:33:29"
                              }
                            ],
                            "id": 6514,
                            "name": "VariableDeclarationStatement",
                            "src": "2714:48:29"
                          },
                          {
                            "attributes": {
                              "assignments": [
                                6516
                              ]
                            },
                            "children": [
                              {
                                "attributes": {
                                  "constant": false,
                                  "mutability": "mutable",
                                  "name": "masked",
                                  "scope": 6557,
                                  "stateVariable": false,
                                  "storageLocation": "default",
                                  "type": "uint256",
                                  "visibility": "internal"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "name": "uint256",
                                      "type": "uint256"
                                    },
                                    "id": 6515,
                                    "name": "ElementaryTypeName",
                                    "src": "2776:7:29"
                                  }
                                ],
                                "id": 6516,
                                "name": "VariableDeclaration",
                                "src": "2776:14:29"
                              },
                              {
                                "attributes": {
                                  "commonType": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "&",
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": true,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 6460,
                                          "type": "mapping(int16 => uint256)",
                                          "value": "self"
                                        },
                                        "id": 6517,
                                        "name": "Identifier",
                                        "src": "2793:4:29"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 6494,
                                          "type": "int16",
                                          "value": "wordPos"
                                        },
                                        "id": 6518,
                                        "name": "Identifier",
                                        "src": "2798:7:29"
                                      }
                                    ],
                                    "id": 6519,
                                    "name": "IndexAccess",
                                    "src": "2793:13:29"
                                  },
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6502,
                                      "type": "uint256",
                                      "value": "mask"
                                    },
                                    "id": 6520,
                                    "name": "Identifier",
                                    "src": "2809:4:29"
                                  }
                                ],
                                "id": 6521,
                                "name": "BinaryOperation",
                                "src": "2793:20:29"
                              }
                            ],
                            "id": 6522,
                            "name": "VariableDeclarationStatement",
                            "src": "2776:37:29"
                          },
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "bool"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6471,
                                      "type": "bool",
                                      "value": "initialized"
                                    },
                                    "id": 6523,
                                    "name": "Identifier",
                                    "src": "2946:11:29"
                                  },
                                  {
                                    "attributes": {
                                      "commonType": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      },
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "operator": "!=",
                                      "type": "bool"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 6516,
                                          "type": "uint256",
                                          "value": "masked"
                                        },
                                        "id": 6524,
                                        "name": "Identifier",
                                        "src": "2960:6:29"
                                      },
                                      {
                                        "attributes": {
                                          "hexvalue": "30",
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": true,
                                          "lValueRequested": false,
                                          "token": "number",
                                          "type": "int_const 0",
                                          "value": "0"
                                        },
                                        "id": 6525,
                                        "name": "Literal",
                                        "src": "2970:1:29"
                                      }
                                    ],
                                    "id": 6526,
                                    "name": "BinaryOperation",
                                    "src": "2960:11:29"
                                  }
                                ],
                                "id": 6527,
                                "name": "Assignment",
                                "src": "2946:25:29"
                              }
                            ],
                            "id": 6528,
                            "name": "ExpressionStatement",
                            "src": "2946:25:29"
                          },
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "int24"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6469,
                                      "type": "int24",
                                      "value": "next"
                                    },
                                    "id": 6529,
                                    "name": "Identifier",
                                    "src": "3095:4:29"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "int24"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 6471,
                                          "type": "bool",
                                          "value": "initialized"
                                        },
                                        "id": 6530,
                                        "name": "Identifier",
                                        "src": "3102:11:29"
                                      },
                                      {
                                        "attributes": {
                                          "commonType": {
                                            "typeIdentifier": "t_int24",
                                            "typeString": "int24"
                                          },
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "*",
                                          "type": "int24"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "isConstant": false,
                                              "isInlineArray": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "type": "int24"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "commonType": {
                                                    "typeIdentifier": "t_int24",
                                                    "typeString": "int24"
                                                  },
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": false,
                                                  "lValueRequested": false,
                                                  "operator": "-",
                                                  "type": "int24"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "overloadedDeclarations": [
                                                        null
                                                      ],
                                                      "referencedDeclaration": 6474,
                                                      "type": "int24",
                                                      "value": "compressed"
                                                    },
                                                    "id": 6531,
                                                    "name": "Identifier",
                                                    "src": "3133:10:29"
                                                  },
                                                  {
                                                    "attributes": {
                                                      "isConstant": false,
                                                      "isLValue": false,
                                                      "isPure": false,
                                                      "isStructConstructorCall": false,
                                                      "lValueRequested": false,
                                                      "names": [
                                                        null
                                                      ],
                                                      "tryCall": false,
                                                      "type": "int24",
                                                      "type_conversion": true
                                                    },
                                                    "children": [
                                                      {
                                                        "attributes": {
                                                          "argumentTypes": [
                                                            {
                                                              "typeIdentifier": "t_uint8",
                                                              "typeString": "uint8"
                                                            }
                                                          ],
                                                          "isConstant": false,
                                                          "isLValue": false,
                                                          "isPure": true,
                                                          "lValueRequested": false,
                                                          "type": "type(int24)"
                                                        },
                                                        "children": [
                                                          {
                                                            "attributes": {
                                                              "name": "int24"
                                                            },
                                                            "id": 6532,
                                                            "name": "ElementaryTypeName",
                                                            "src": "3146:5:29"
                                                          }
                                                        ],
                                                        "id": 6533,
                                                        "name": "ElementaryTypeNameExpression",
                                                        "src": "3146:5:29"
                                                      },
                                                      {
                                                        "attributes": {
                                                          "commonType": {
                                                            "typeIdentifier": "t_uint8",
                                                            "typeString": "uint8"
                                                          },
                                                          "isConstant": false,
                                                          "isLValue": false,
                                                          "isPure": false,
                                                          "lValueRequested": false,
                                                          "operator": "-",
                                                          "type": "uint8"
                                                        },
                                                        "children": [
                                                          {
                                                            "attributes": {
                                                              "overloadedDeclarations": [
                                                                null
                                                              ],
                                                              "referencedDeclaration": 6496,
                                                              "type": "uint8",
                                                              "value": "bitPos"
                                                            },
                                                            "id": 6534,
                                                            "name": "Identifier",
                                                            "src": "3152:6:29"
                                                          },
                                                          {
                                                            "attributes": {
                                                              "isConstant": false,
                                                              "isLValue": false,
                                                              "isPure": false,
                                                              "isStructConstructorCall": false,
                                                              "lValueRequested": false,
                                                              "names": [
                                                                null
                                                              ],
                                                              "tryCall": false,
                                                              "type": "uint8",
                                                              "type_conversion": false
                                                            },
                                                            "children": [
                                                              {
                                                                "attributes": {
                                                                  "argumentTypes": [
                                                                    {
                                                                      "typeIdentifier": "t_uint256",
                                                                      "typeString": "uint256"
                                                                    }
                                                                  ],
                                                                  "isConstant": false,
                                                                  "isLValue": false,
                                                                  "isPure": false,
                                                                  "lValueRequested": false,
                                                                  "member_name": "mostSignificantBit",
                                                                  "referencedDeclaration": 3638,
                                                                  "type": "function (uint256) pure returns (uint8)"
                                                                },
                                                                "children": [
                                                                  {
                                                                    "attributes": {
                                                                      "overloadedDeclarations": [
                                                                        null
                                                                      ],
                                                                      "referencedDeclaration": 3800,
                                                                      "type": "type(library BitMath)",
                                                                      "value": "BitMath"
                                                                    },
                                                                    "id": 6535,
                                                                    "name": "Identifier",
                                                                    "src": "3161:7:29"
                                                                  }
                                                                ],
                                                                "id": 6536,
                                                                "name": "MemberAccess",
                                                                "src": "3161:26:29"
                                                              },
                                                              {
                                                                "attributes": {
                                                                  "overloadedDeclarations": [
                                                                    null
                                                                  ],
                                                                  "referencedDeclaration": 6516,
                                                                  "type": "uint256",
                                                                  "value": "masked"
                                                                },
                                                                "id": 6537,
                                                                "name": "Identifier",
                                                                "src": "3188:6:29"
                                                              }
                                                            ],
                                                            "id": 6538,
                                                            "name": "FunctionCall",
                                                            "src": "3161:34:29"
                                                          }
                                                        ],
                                                        "id": 6539,
                                                        "name": "BinaryOperation",
                                                        "src": "3152:43:29"
                                                      }
                                                    ],
                                                    "id": 6540,
                                                    "name": "FunctionCall",
                                                    "src": "3146:50:29"
                                                  }
                                                ],
                                                "id": 6541,
                                                "name": "BinaryOperation",
                                                "src": "3133:63:29"
                                              }
                                            ],
                                            "id": 6542,
                                            "name": "TupleExpression",
                                            "src": "3132:65:29"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 6464,
                                              "type": "int24",
                                              "value": "tickSpacing"
                                            },
                                            "id": 6543,
                                            "name": "Identifier",
                                            "src": "3200:11:29"
                                          }
                                        ],
                                        "id": 6544,
                                        "name": "BinaryOperation",
                                        "src": "3132:79:29"
                                      },
                                      {
                                        "attributes": {
                                          "commonType": {
                                            "typeIdentifier": "t_int24",
                                            "typeString": "int24"
                                          },
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "*",
                                          "type": "int24"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "isConstant": false,
                                              "isInlineArray": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "type": "int24"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "commonType": {
                                                    "typeIdentifier": "t_int24",
                                                    "typeString": "int24"
                                                  },
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": false,
                                                  "lValueRequested": false,
                                                  "operator": "-",
                                                  "type": "int24"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "overloadedDeclarations": [
                                                        null
                                                      ],
                                                      "referencedDeclaration": 6474,
                                                      "type": "int24",
                                                      "value": "compressed"
                                                    },
                                                    "id": 6545,
                                                    "name": "Identifier",
                                                    "src": "3231:10:29"
                                                  },
                                                  {
                                                    "attributes": {
                                                      "isConstant": false,
                                                      "isLValue": false,
                                                      "isPure": false,
                                                      "isStructConstructorCall": false,
                                                      "lValueRequested": false,
                                                      "names": [
                                                        null
                                                      ],
                                                      "tryCall": false,
                                                      "type": "int24",
                                                      "type_conversion": true
                                                    },
                                                    "children": [
                                                      {
                                                        "attributes": {
                                                          "argumentTypes": [
                                                            {
                                                              "typeIdentifier": "t_uint8",
                                                              "typeString": "uint8"
                                                            }
                                                          ],
                                                          "isConstant": false,
                                                          "isLValue": false,
                                                          "isPure": true,
                                                          "lValueRequested": false,
                                                          "type": "type(int24)"
                                                        },
                                                        "children": [
                                                          {
                                                            "attributes": {
                                                              "name": "int24"
                                                            },
                                                            "id": 6546,
                                                            "name": "ElementaryTypeName",
                                                            "src": "3244:5:29"
                                                          }
                                                        ],
                                                        "id": 6547,
                                                        "name": "ElementaryTypeNameExpression",
                                                        "src": "3244:5:29"
                                                      },
                                                      {
                                                        "attributes": {
                                                          "overloadedDeclarations": [
                                                            null
                                                          ],
                                                          "referencedDeclaration": 6496,
                                                          "type": "uint8",
                                                          "value": "bitPos"
                                                        },
                                                        "id": 6548,
                                                        "name": "Identifier",
                                                        "src": "3250:6:29"
                                                      }
                                                    ],
                                                    "id": 6549,
                                                    "name": "FunctionCall",
                                                    "src": "3244:13:29"
                                                  }
                                                ],
                                                "id": 6550,
                                                "name": "BinaryOperation",
                                                "src": "3231:26:29"
                                              }
                                            ],
                                            "id": 6551,
                                            "name": "TupleExpression",
                                            "src": "3230:28:29"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 6464,
                                              "type": "int24",
                                              "value": "tickSpacing"
                                            },
                                            "id": 6552,
                                            "name": "Identifier",
                                            "src": "3261:11:29"
                                          }
                                        ],
                                        "id": 6553,
                                        "name": "BinaryOperation",
                                        "src": "3230:42:29"
                                      }
                                    ],
                                    "id": 6554,
                                    "name": "Conditional",
                                    "src": "3102:170:29"
                                  }
                                ],
                                "id": 6555,
                                "name": "Assignment",
                                "src": "3095:177:29"
                              }
                            ],
                            "id": 6556,
                            "name": "ExpressionStatement",
                            "src": "3095:177:29"
                          }
                        ],
                        "id": 6557,
                        "name": "Block",
                        "src": "2567:716:29"
                      },
                      {
                        "children": [
                          {
                            "attributes": {
                              "assignments": [
                                6559,
                                6561
                              ]
                            },
                            "children": [
                              {
                                "attributes": {
                                  "constant": false,
                                  "mutability": "mutable",
                                  "name": "wordPos",
                                  "scope": 6631,
                                  "stateVariable": false,
                                  "storageLocation": "default",
                                  "type": "int16",
                                  "visibility": "internal"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "name": "int16",
                                      "type": "int16"
                                    },
                                    "id": 6558,
                                    "name": "ElementaryTypeName",
                                    "src": "3401:5:29"
                                  }
                                ],
                                "id": 6559,
                                "name": "VariableDeclaration",
                                "src": "3401:13:29"
                              },
                              {
                                "attributes": {
                                  "constant": false,
                                  "mutability": "mutable",
                                  "name": "bitPos",
                                  "scope": 6631,
                                  "stateVariable": false,
                                  "storageLocation": "default",
                                  "type": "uint8",
                                  "visibility": "internal"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "name": "uint8",
                                      "type": "uint8"
                                    },
                                    "id": 6560,
                                    "name": "ElementaryTypeName",
                                    "src": "3416:5:29"
                                  }
                                ],
                                "id": 6561,
                                "name": "VariableDeclaration",
                                "src": "3416:12:29"
                              },
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "isStructConstructorCall": false,
                                  "lValueRequested": false,
                                  "names": [
                                    null
                                  ],
                                  "tryCall": false,
                                  "type": "tuple(int16,uint8)",
                                  "type_conversion": false
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_int24",
                                          "typeString": "int24"
                                        }
                                      ],
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6412,
                                      "type": "function (int24) pure returns (int16,uint8)",
                                      "value": "position"
                                    },
                                    "id": 6562,
                                    "name": "Identifier",
                                    "src": "3432:8:29"
                                  },
                                  {
                                    "attributes": {
                                      "commonType": {
                                        "typeIdentifier": "t_int24",
                                        "typeString": "int24"
                                      },
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "operator": "+",
                                      "type": "int24"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 6474,
                                          "type": "int24",
                                          "value": "compressed"
                                        },
                                        "id": 6563,
                                        "name": "Identifier",
                                        "src": "3441:10:29"
                                      },
                                      {
                                        "attributes": {
                                          "hexvalue": "31",
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": true,
                                          "lValueRequested": false,
                                          "token": "number",
                                          "type": "int_const 1",
                                          "value": "1"
                                        },
                                        "id": 6564,
                                        "name": "Literal",
                                        "src": "3454:1:29"
                                      }
                                    ],
                                    "id": 6565,
                                    "name": "BinaryOperation",
                                    "src": "3441:14:29"
                                  }
                                ],
                                "id": 6566,
                                "name": "FunctionCall",
                                "src": "3432:24:29"
                              }
                            ],
                            "id": 6567,
                            "name": "VariableDeclarationStatement",
                            "src": "3400:56:29"
                          },
                          {
                            "attributes": {
                              "assignments": [
                                6569
                              ]
                            },
                            "children": [
                              {
                                "attributes": {
                                  "constant": false,
                                  "mutability": "mutable",
                                  "name": "mask",
                                  "scope": 6631,
                                  "stateVariable": false,
                                  "storageLocation": "default",
                                  "type": "uint256",
                                  "visibility": "internal"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "name": "uint256",
                                      "type": "uint256"
                                    },
                                    "id": 6568,
                                    "name": "ElementaryTypeName",
                                    "src": "3528:7:29"
                                  }
                                ],
                                "id": 6569,
                                "name": "VariableDeclaration",
                                "src": "3528:12:29"
                              },
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "~",
                                  "prefix": true,
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isInlineArray": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "commonType": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                          },
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "-",
                                          "type": "uint256"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "isConstant": false,
                                              "isInlineArray": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "type": "uint256"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "commonType": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                  },
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": false,
                                                  "lValueRequested": false,
                                                  "operator": "<<",
                                                  "type": "uint256"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "hexvalue": "31",
                                                      "isConstant": false,
                                                      "isLValue": false,
                                                      "isPure": true,
                                                      "lValueRequested": false,
                                                      "token": "number",
                                                      "type": "int_const 1",
                                                      "value": "1"
                                                    },
                                                    "id": 6570,
                                                    "name": "Literal",
                                                    "src": "3546:1:29"
                                                  },
                                                  {
                                                    "attributes": {
                                                      "overloadedDeclarations": [
                                                        null
                                                      ],
                                                      "referencedDeclaration": 6561,
                                                      "type": "uint8",
                                                      "value": "bitPos"
                                                    },
                                                    "id": 6571,
                                                    "name": "Identifier",
                                                    "src": "3551:6:29"
                                                  }
                                                ],
                                                "id": 6572,
                                                "name": "BinaryOperation",
                                                "src": "3546:11:29"
                                              }
                                            ],
                                            "id": 6573,
                                            "name": "TupleExpression",
                                            "src": "3545:13:29"
                                          },
                                          {
                                            "attributes": {
                                              "hexvalue": "31",
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "token": "number",
                                              "type": "int_const 1",
                                              "value": "1"
                                            },
                                            "id": 6574,
                                            "name": "Literal",
                                            "src": "3561:1:29"
                                          }
                                        ],
                                        "id": 6575,
                                        "name": "BinaryOperation",
                                        "src": "3545:17:29"
                                      }
                                    ],
                                    "id": 6576,
                                    "name": "TupleExpression",
                                    "src": "3544:19:29"
                                  }
                                ],
                                "id": 6577,
                                "name": "UnaryOperation",
                                "src": "3543:20:29"
                              }
                            ],
                            "id": 6578,
                            "name": "VariableDeclarationStatement",
                            "src": "3528:35:29"
                          },
                          {
                            "attributes": {
                              "assignments": [
                                6580
                              ]
                            },
                            "children": [
                              {
                                "attributes": {
                                  "constant": false,
                                  "mutability": "mutable",
                                  "name": "masked",
                                  "scope": 6631,
                                  "stateVariable": false,
                                  "storageLocation": "default",
                                  "type": "uint256",
                                  "visibility": "internal"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "name": "uint256",
                                      "type": "uint256"
                                    },
                                    "id": 6579,
                                    "name": "ElementaryTypeName",
                                    "src": "3577:7:29"
                                  }
                                ],
                                "id": 6580,
                                "name": "VariableDeclaration",
                                "src": "3577:14:29"
                              },
                              {
                                "attributes": {
                                  "commonType": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "&",
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": true,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 6460,
                                          "type": "mapping(int16 => uint256)",
                                          "value": "self"
                                        },
                                        "id": 6581,
                                        "name": "Identifier",
                                        "src": "3594:4:29"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 6559,
                                          "type": "int16",
                                          "value": "wordPos"
                                        },
                                        "id": 6582,
                                        "name": "Identifier",
                                        "src": "3599:7:29"
                                      }
                                    ],
                                    "id": 6583,
                                    "name": "IndexAccess",
                                    "src": "3594:13:29"
                                  },
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6569,
                                      "type": "uint256",
                                      "value": "mask"
                                    },
                                    "id": 6584,
                                    "name": "Identifier",
                                    "src": "3610:4:29"
                                  }
                                ],
                                "id": 6585,
                                "name": "BinaryOperation",
                                "src": "3594:20:29"
                              }
                            ],
                            "id": 6586,
                            "name": "VariableDeclarationStatement",
                            "src": "3577:37:29"
                          },
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "bool"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6471,
                                      "type": "bool",
                                      "value": "initialized"
                                    },
                                    "id": 6587,
                                    "name": "Identifier",
                                    "src": "3739:11:29"
                                  },
                                  {
                                    "attributes": {
                                      "commonType": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      },
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "operator": "!=",
                                      "type": "bool"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 6580,
                                          "type": "uint256",
                                          "value": "masked"
                                        },
                                        "id": 6588,
                                        "name": "Identifier",
                                        "src": "3753:6:29"
                                      },
                                      {
                                        "attributes": {
                                          "hexvalue": "30",
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": true,
                                          "lValueRequested": false,
                                          "token": "number",
                                          "type": "int_const 0",
                                          "value": "0"
                                        },
                                        "id": 6589,
                                        "name": "Literal",
                                        "src": "3763:1:29"
                                      }
                                    ],
                                    "id": 6590,
                                    "name": "BinaryOperation",
                                    "src": "3753:11:29"
                                  }
                                ],
                                "id": 6591,
                                "name": "Assignment",
                                "src": "3739:25:29"
                              }
                            ],
                            "id": 6592,
                            "name": "ExpressionStatement",
                            "src": "3739:25:29"
                          },
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "int24"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 6469,
                                      "type": "int24",
                                      "value": "next"
                                    },
                                    "id": 6593,
                                    "name": "Identifier",
                                    "src": "3888:4:29"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "int24"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 6471,
                                          "type": "bool",
                                          "value": "initialized"
                                        },
                                        "id": 6594,
                                        "name": "Identifier",
                                        "src": "3895:11:29"
                                      },
                                      {
                                        "attributes": {
                                          "commonType": {
                                            "typeIdentifier": "t_int24",
                                            "typeString": "int24"
                                          },
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "*",
                                          "type": "int24"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "isConstant": false,
                                              "isInlineArray": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "type": "int24"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "commonType": {
                                                    "typeIdentifier": "t_int24",
                                                    "typeString": "int24"
                                                  },
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": false,
                                                  "lValueRequested": false,
                                                  "operator": "+",
                                                  "type": "int24"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "commonType": {
                                                        "typeIdentifier": "t_int24",
                                                        "typeString": "int24"
                                                      },
                                                      "isConstant": false,
                                                      "isLValue": false,
                                                      "isPure": false,
                                                      "lValueRequested": false,
                                                      "operator": "+",
                                                      "type": "int24"
                                                    },
                                                    "children": [
                                                      {
                                                        "attributes": {
                                                          "overloadedDeclarations": [
                                                            null
                                                          ],
                                                          "referencedDeclaration": 6474,
                                                          "type": "int24",
                                                          "value": "compressed"
                                                        },
                                                        "id": 6595,
                                                        "name": "Identifier",
                                                        "src": "3926:10:29"
                                                      },
                                                      {
                                                        "attributes": {
                                                          "hexvalue": "31",
                                                          "isConstant": false,
                                                          "isLValue": false,
                                                          "isPure": true,
                                                          "lValueRequested": false,
                                                          "token": "number",
                                                          "type": "int_const 1",
                                                          "value": "1"
                                                        },
                                                        "id": 6596,
                                                        "name": "Literal",
                                                        "src": "3939:1:29"
                                                      }
                                                    ],
                                                    "id": 6597,
                                                    "name": "BinaryOperation",
                                                    "src": "3926:14:29"
                                                  },
                                                  {
                                                    "attributes": {
                                                      "isConstant": false,
                                                      "isLValue": false,
                                                      "isPure": false,
                                                      "isStructConstructorCall": false,
                                                      "lValueRequested": false,
                                                      "names": [
                                                        null
                                                      ],
                                                      "tryCall": false,
                                                      "type": "int24",
                                                      "type_conversion": true
                                                    },
                                                    "children": [
                                                      {
                                                        "attributes": {
                                                          "argumentTypes": [
                                                            {
                                                              "typeIdentifier": "t_uint8",
                                                              "typeString": "uint8"
                                                            }
                                                          ],
                                                          "isConstant": false,
                                                          "isLValue": false,
                                                          "isPure": true,
                                                          "lValueRequested": false,
                                                          "type": "type(int24)"
                                                        },
                                                        "children": [
                                                          {
                                                            "attributes": {
                                                              "name": "int24"
                                                            },
                                                            "id": 6598,
                                                            "name": "ElementaryTypeName",
                                                            "src": "3943:5:29"
                                                          }
                                                        ],
                                                        "id": 6599,
                                                        "name": "ElementaryTypeNameExpression",
                                                        "src": "3943:5:29"
                                                      },
                                                      {
                                                        "attributes": {
                                                          "commonType": {
                                                            "typeIdentifier": "t_uint8",
                                                            "typeString": "uint8"
                                                          },
                                                          "isConstant": false,
                                                          "isLValue": false,
                                                          "isPure": false,
                                                          "lValueRequested": false,
                                                          "operator": "-",
                                                          "type": "uint8"
                                                        },
                                                        "children": [
                                                          {
                                                            "attributes": {
                                                              "isConstant": false,
                                                              "isLValue": false,
                                                              "isPure": false,
                                                              "isStructConstructorCall": false,
                                                              "lValueRequested": false,
                                                              "names": [
                                                                null
                                                              ],
                                                              "tryCall": false,
                                                              "type": "uint8",
                                                              "type_conversion": false
                                                            },
                                                            "children": [
                                                              {
                                                                "attributes": {
                                                                  "argumentTypes": [
                                                                    {
                                                                      "typeIdentifier": "t_uint256",
                                                                      "typeString": "uint256"
                                                                    }
                                                                  ],
                                                                  "isConstant": false,
                                                                  "isLValue": false,
                                                                  "isPure": false,
                                                                  "lValueRequested": false,
                                                                  "member_name": "leastSignificantBit",
                                                                  "referencedDeclaration": 3799,
                                                                  "type": "function (uint256) pure returns (uint8)"
                                                                },
                                                                "children": [
                                                                  {
                                                                    "attributes": {
                                                                      "overloadedDeclarations": [
                                                                        null
                                                                      ],
                                                                      "referencedDeclaration": 3800,
                                                                      "type": "type(library BitMath)",
                                                                      "value": "BitMath"
                                                                    },
                                                                    "id": 6600,
                                                                    "name": "Identifier",
                                                                    "src": "3949:7:29"
                                                                  }
                                                                ],
                                                                "id": 6601,
                                                                "name": "MemberAccess",
                                                                "src": "3949:27:29"
                                                              },
                                                              {
                                                                "attributes": {
                                                                  "overloadedDeclarations": [
                                                                    null
                                                                  ],
                                                                  "referencedDeclaration": 6580,
                                                                  "type": "uint256",
                                                                  "value": "masked"
                                                                },
                                                                "id": 6602,
                                                                "name": "Identifier",
                                                                "src": "3977:6:29"
                                                              }
                                                            ],
                                                            "id": 6603,
                                                            "name": "FunctionCall",
                                                            "src": "3949:35:29"
                                                          },
                                                          {
                                                            "attributes": {
                                                              "overloadedDeclarations": [
                                                                null
                                                              ],
                                                              "referencedDeclaration": 6561,
                                                              "type": "uint8",
                                                              "value": "bitPos"
                                                            },
                                                            "id": 6604,
                                                            "name": "Identifier",
                                                            "src": "3987:6:29"
                                                          }
                                                        ],
                                                        "id": 6605,
                                                        "name": "BinaryOperation",
                                                        "src": "3949:44:29"
                                                      }
                                                    ],
                                                    "id": 6606,
                                                    "name": "FunctionCall",
                                                    "src": "3943:51:29"
                                                  }
                                                ],
                                                "id": 6607,
                                                "name": "BinaryOperation",
                                                "src": "3926:68:29"
                                              }
                                            ],
                                            "id": 6608,
                                            "name": "TupleExpression",
                                            "src": "3925:70:29"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 6464,
                                              "type": "int24",
                                              "value": "tickSpacing"
                                            },
                                            "id": 6609,
                                            "name": "Identifier",
                                            "src": "3998:11:29"
                                          }
                                        ],
                                        "id": 6610,
                                        "name": "BinaryOperation",
                                        "src": "3925:84:29"
                                      },
                                      {
                                        "attributes": {
                                          "commonType": {
                                            "typeIdentifier": "t_int24",
                                            "typeString": "int24"
                                          },
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "*",
                                          "type": "int24"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "isConstant": false,
                                              "isInlineArray": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "type": "int24"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "commonType": {
                                                    "typeIdentifier": "t_int24",
                                                    "typeString": "int24"
                                                  },
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": false,
                                                  "lValueRequested": false,
                                                  "operator": "+",
                                                  "type": "int24"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "commonType": {
                                                        "typeIdentifier": "t_int24",
                                                        "typeString": "int24"
                                                      },
                                                      "isConstant": false,
                                                      "isLValue": false,
                                                      "isPure": false,
                                                      "lValueRequested": false,
                                                      "operator": "+",
                                                      "type": "int24"
                                                    },
                                                    "children": [
                                                      {
                                                        "attributes": {
                                                          "overloadedDeclarations": [
                                                            null
                                                          ],
                                                          "referencedDeclaration": 6474,
                                                          "type": "int24",
                                                          "value": "compressed"
                                                        },
                                                        "id": 6611,
                                                        "name": "Identifier",
                                                        "src": "4029:10:29"
                                                      },
                                                      {
                                                        "attributes": {
                                                          "hexvalue": "31",
                                                          "isConstant": false,
                                                          "isLValue": false,
                                                          "isPure": true,
                                                          "lValueRequested": false,
                                                          "token": "number",
                                                          "type": "int_const 1",
                                                          "value": "1"
                                                        },
                                                        "id": 6612,
                                                        "name": "Literal",
                                                        "src": "4042:1:29"
                                                      }
                                                    ],
                                                    "id": 6613,
                                                    "name": "BinaryOperation",
                                                    "src": "4029:14:29"
                                                  },
                                                  {
                                                    "attributes": {
                                                      "isConstant": false,
                                                      "isLValue": false,
                                                      "isPure": false,
                                                      "isStructConstructorCall": false,
                                                      "lValueRequested": false,
                                                      "names": [
                                                        null
                                                      ],
                                                      "tryCall": false,
                                                      "type": "int24",
                                                      "type_conversion": true
                                                    },
                                                    "children": [
                                                      {
                                                        "attributes": {
                                                          "argumentTypes": [
                                                            {
                                                              "typeIdentifier": "t_uint8",
                                                              "typeString": "uint8"
                                                            }
                                                          ],
                                                          "isConstant": false,
                                                          "isLValue": false,
                                                          "isPure": true,
                                                          "lValueRequested": false,
                                                          "type": "type(int24)"
                                                        },
                                                        "children": [
                                                          {
                                                            "attributes": {
                                                              "name": "int24"
                                                            },
                                                            "id": 6614,
                                                            "name": "ElementaryTypeName",
                                                            "src": "4046:5:29"
                                                          }
                                                        ],
                                                        "id": 6615,
                                                        "name": "ElementaryTypeNameExpression",
                                                        "src": "4046:5:29"
                                                      },
                                                      {
                                                        "attributes": {
                                                          "commonType": {
                                                            "typeIdentifier": "t_uint8",
                                                            "typeString": "uint8"
                                                          },
                                                          "isConstant": false,
                                                          "isLValue": false,
                                                          "isPure": false,
                                                          "lValueRequested": false,
                                                          "operator": "-",
                                                          "type": "uint8"
                                                        },
                                                        "children": [
                                                          {
                                                            "attributes": {
                                                              "isConstant": false,
                                                              "isLValue": false,
                                                              "isPure": true,
                                                              "lValueRequested": false,
                                                              "member_name": "max",
                                                              "type": "uint8"
                                                            },
                                                            "children": [
                                                              {
                                                                "attributes": {
                                                                  "isConstant": false,
                                                                  "isLValue": false,
                                                                  "isPure": true,
                                                                  "isStructConstructorCall": false,
                                                                  "lValueRequested": false,
                                                                  "names": [
                                                                    null
                                                                  ],
                                                                  "tryCall": false,
                                                                  "type": "type(uint8)",
                                                                  "type_conversion": false
                                                                },
                                                                "children": [
                                                                  {
                                                                    "attributes": {
                                                                      "argumentTypes": [
                                                                        {
                                                                          "typeIdentifier": "t_type$_t_uint8_$",
                                                                          "typeString": "type(uint8)"
                                                                        }
                                                                      ],
                                                                      "overloadedDeclarations": [
                                                                        null
                                                                      ],
                                                                      "referencedDeclaration": 4294967269,
                                                                      "type": "function () pure",
                                                                      "value": "type"
                                                                    },
                                                                    "id": 6616,
                                                                    "name": "Identifier",
                                                                    "src": "4052:4:29"
                                                                  },
                                                                  {
                                                                    "attributes": {
                                                                      "isConstant": false,
                                                                      "isLValue": false,
                                                                      "isPure": true,
                                                                      "lValueRequested": false,
                                                                      "type": "type(uint8)"
                                                                    },
                                                                    "children": [
                                                                      {
                                                                        "attributes": {
                                                                          "name": "uint8"
                                                                        },
                                                                        "id": 6617,
                                                                        "name": "ElementaryTypeName",
                                                                        "src": "4057:5:29"
                                                                      }
                                                                    ],
                                                                    "id": 6618,
                                                                    "name": "ElementaryTypeNameExpression",
                                                                    "src": "4057:5:29"
                                                                  }
                                                                ],
                                                                "id": 6619,
                                                                "name": "FunctionCall",
                                                                "src": "4052:11:29"
                                                              }
                                                            ],
                                                            "id": 6620,
                                                            "name": "MemberAccess",
                                                            "src": "4052:15:29"
                                                          },
                                                          {
                                                            "attributes": {
                                                              "overloadedDeclarations": [
                                                                null
                                                              ],
                                                              "referencedDeclaration": 6561,
                                                              "type": "uint8",
                                                              "value": "bitPos"
                                                            },
                                                            "id": 6621,
                                                            "name": "Identifier",
                                                            "src": "4070:6:29"
                                                          }
                                                        ],
                                                        "id": 6622,
                                                        "name": "BinaryOperation",
                                                        "src": "4052:24:29"
                                                      }
                                                    ],
                                                    "id": 6623,
                                                    "name": "FunctionCall",
                                                    "src": "4046:31:29"
                                                  }
                                                ],
                                                "id": 6624,
                                                "name": "BinaryOperation",
                                                "src": "4029:48:29"
                                              }
                                            ],
                                            "id": 6625,
                                            "name": "TupleExpression",
                                            "src": "4028:50:29"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 6464,
                                              "type": "int24",
                                              "value": "tickSpacing"
                                            },
                                            "id": 6626,
                                            "name": "Identifier",
                                            "src": "4081:11:29"
                                          }
                                        ],
                                        "id": 6627,
                                        "name": "BinaryOperation",
                                        "src": "4028:64:29"
                                      }
                                    ],
                                    "id": 6628,
                                    "name": "Conditional",
                                    "src": "3895:197:29"
                                  }
                                ],
                                "id": 6629,
                                "name": "Assignment",
                                "src": "3888:204:29"
                              }
                            ],
                            "id": 6630,
                            "name": "ExpressionStatement",
                            "src": "3888:204:29"
                          }
                        ],
                        "id": 6631,
                        "name": "Block",
                        "src": "3289:814:29"
                      }
                    ],
                    "id": 6632,
                    "name": "IfStatement",
                    "src": "2558:1545:29"
                  }
                ],
                "id": 6633,
                "name": "Block",
                "src": "2402:1707:29"
              }
            ],
            "id": 6634,
            "name": "FunctionDefinition",
            "src": "2188:1921:29"
          }
        ],
        "id": 6635,
        "name": "ContractDefinition",
        "src": "331:3780:29"
      }
    ],
    "id": 6636,
    "name": "SourceUnit",
    "src": "37:4075:29"
  },
  "compiler": {
    "name": "solc",
    "version": "0.7.6+commit.7338295f.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.4.1",
  "updatedAt": "2022-01-17T20:05:41.801Z",
  "devdoc": {
    "details": "The mapping uses int16 for keys since ticks are represented as int24 and there are 256 (2^8) values per word.",
    "kind": "dev",
    "methods": {},
    "title": "Packed tick initialized state library",
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {},
    "notice": "Stores a packed mapping of tick index to its initialized state",
    "version": 1
  }
}