{
    "Function": "expMod",
    "File": "src/contracts/libraries/BN254.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "gas()",
        "require(bool,string)",
        "staticcall(uint256,uint256,uint256,uint256,uint256,uint256)",
        "invalid()"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function expMod(uint256 _base, uint256 _exponent, uint256 _modulus) internal view returns (uint256 retval) {\n        bool success;\n        uint256[1] memory output;\n        uint[6] memory input;\n        input[0] = 0x20;        // baseLen = new(big.Int).SetBytes(getData(input, 0, 32))\n        input[1] = 0x20;        // expLen  = new(big.Int).SetBytes(getData(input, 32, 32))\n        input[2] = 0x20;        // modLen  = new(big.Int).SetBytes(getData(input, 64, 32))\n        input[3] = _base;\n        input[4] = _exponent;\n        input[5] = _modulus;\n        assembly {\n            success := staticcall(sub(gas(), 2000), 5, input, 0xc0, output, 0x20)\n            // Use \"invalid\" to make gas estimation work\n            switch success case 0 { invalid() }\n        }\n        require(success, \"BN254.expMod: call failure\");\n        return output[0];\n    }"
}