Created
February 13, 2023 11:24
-
-
Save makenowjust/6225bcc1bca157a56937ab08adeef3ab to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var __defProp = Object.defineProperty; | |
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | |
var __getOwnPropNames = Object.getOwnPropertyNames; | |
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | |
var __hasOwnProp = Object.prototype.hasOwnProperty; | |
var __propIsEnum = Object.prototype.propertyIsEnumerable; | |
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | |
var __spreadValues = (a, b) => { | |
for (var prop in b || (b = {})) | |
if (__hasOwnProp.call(b, prop)) | |
__defNormalProp(a, prop, b[prop]); | |
if (__getOwnPropSymbols) | |
for (var prop of __getOwnPropSymbols(b)) { | |
if (__propIsEnum.call(b, prop)) | |
__defNormalProp(a, prop, b[prop]); | |
} | |
return a; | |
}; | |
var __export = (target, all) => { | |
for (var name in all) | |
__defProp(target, name, { get: all[name], enumerable: true }); | |
}; | |
var __copyProps = (to, from, except, desc) => { | |
if (from && typeof from === "object" || typeof from === "function") { | |
for (let key of __getOwnPropNames(from)) | |
if (!__hasOwnProp.call(to, key) && key !== except) | |
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | |
} | |
return to; | |
}; | |
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | |
var __async = (__this, __arguments, generator) => { | |
return new Promise((resolve, reject) => { | |
var fulfilled = (value) => { | |
try { | |
step(generator.next(value)); | |
} catch (e) { | |
reject(e); | |
} | |
}; | |
var rejected = (value) => { | |
try { | |
step(generator.throw(value)); | |
} catch (e) { | |
reject(e); | |
} | |
}; | |
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); | |
step((generator = generator.apply(__this, __arguments)).next()); | |
}); | |
}; | |
// src/main.ts | |
var main_exports = {}; | |
__export(main_exports, { | |
__mock__: () => __mock__, | |
check: () => check3, | |
checkSync: () => checkSync | |
}); | |
module.exports = __toCommonJS(main_exports); | |
// src/inject/main.ts | |
var import_worker_threads = require("worker_threads"); | |
function Blob(data) { | |
return data; | |
} | |
var URL = { | |
/** Converts `data` to a primitive string. */ | |
createObjectURL(data) { | |
return String(data); | |
}, | |
/** Does nothing. */ | |
revokeObjectURL(data) { | |
return; | |
} | |
}; | |
function Worker(data) { | |
const thread = new import_worker_threads.Worker(data, { eval: true }); | |
return { | |
addEventListener(name, callback) { | |
thread.on("message", (data2) => callback({ data: data2 })); | |
}, | |
postMessage(message) { | |
thread.postMessage(message); | |
}, | |
terminate() { | |
thread.terminate(); | |
}, | |
ref() { | |
thread.ref(); | |
}, | |
unref() { | |
thread.unref(); | |
} | |
}; | |
} | |
// src/lib/agent.ts | |
var import_child_process = require("child_process"); | |
var Agent = class { | |
constructor(child) { | |
this.child = child; | |
this.nextID = 0; | |
this.refs = /* @__PURE__ */ new Map(); | |
this.handle(); | |
} | |
/** Sends a request to `recheck agent` process. */ | |
request(method, params, subscribe = null) { | |
const id = this.nextID++; | |
const promise = new Promise((resolve, reject) => { | |
const object = { | |
jsonrpc: "2.0+push", | |
id, | |
method, | |
params | |
}; | |
const text = JSON.stringify(object) + "\n"; | |
console.log(`==> ${text}`); | |
this.child.stdin.write(text); | |
this.registerRef(id, { resolve, reject, subscribe }); | |
}); | |
return { id, promise }; | |
} | |
/** Sends a notification to `recheck agent` process. */ | |
notify(method, params) { | |
return new Promise((resolve) => { | |
const object = { | |
jsonrpc: "2.0+push", | |
method, | |
params | |
}; | |
const text = JSON.stringify(object) + "\n"; | |
console.log(`==> ${text}`); | |
this.child.stdin.write(text); | |
resolve(); | |
}); | |
} | |
/** Sets up response handlers to `recheck agent` process. */ | |
handle() { | |
let remainingLastLine = ""; | |
const handleLine = (line) => { | |
var _a, _b; | |
if (line === "") { | |
return; | |
} | |
console.log(`<== ${line}`); | |
const { id, message, result } = JSON.parse(line); | |
const ref = (_a = this.refs.get(id)) != null ? _a : null; | |
if (ref === null) { | |
return; | |
} | |
if (message != void 0) { | |
(_b = ref.subscribe) == null ? void 0 : _b.call(ref, message); | |
return; | |
} | |
if (result !== void 0) { | |
ref.resolve(result); | |
this.unregisterRef(id); | |
} | |
}; | |
this.child.stdout.on("data", (data) => { | |
var _a, _b; | |
const text = data.toString("utf-8"); | |
const lines = text.split("\n"); | |
const hasNewline = lines.length > 1; | |
const lastLine = (_a = lines.pop()) != null ? _a : ""; | |
const firstLine = (_b = lines.shift()) != null ? _b : ""; | |
if (hasNewline) { | |
lines.unshift(remainingLastLine + firstLine); | |
remainingLastLine = ""; | |
} | |
for (const line of lines) { | |
handleLine(line); | |
} | |
remainingLastLine += lastLine; | |
}); | |
} | |
/** Registers the given reference. */ | |
registerRef(id, ref) { | |
this.refs.set(id, ref); | |
if (this.refs.size === 1) { | |
this.child.ref(); | |
} | |
} | |
/** Removes a registration of the given ID reference. */ | |
unregisterRef(id) { | |
this.refs.delete(id); | |
if (this.refs.size === 0) { | |
this.child.unref(); | |
} | |
} | |
/** Kills the `agent` process. */ | |
kill() { | |
this.child.unref(); | |
this.child.kill(); | |
} | |
}; | |
function start(_0) { | |
return __async(this, arguments, function* (command, args = []) { | |
return yield new Promise((resolve, reject) => { | |
var _a, _b; | |
const child = (0, import_child_process.spawn)(command, args, { | |
windowsHide: true, | |
stdio: ["pipe", "pipe", "inherit"] | |
}); | |
const onClose = () => reject(new Error("process is closed")); | |
child.on("error", reject); | |
child.on("close", onClose); | |
child.unref(); | |
if ((_a = child.stdin) == null ? void 0 : _a.unref) { | |
child.stdin.unref(); | |
} | |
if ((_b = child.stdout) == null ? void 0 : _b.unref) { | |
child.stdout.unref(); | |
} | |
const agent = new Agent(child); | |
agent.request("ping", {}).promise.then(() => { | |
child.off("error", reject); | |
child.off("close", onClose); | |
resolve(agent); | |
}).catch(reject); | |
}); | |
}); | |
} | |
function check(_0, _1, _2) { | |
return __async(this, arguments, function* (agent, source, flags, params = {}) { | |
var _a, _b; | |
const newParams = __spreadValues({}, params); | |
const signal = (_a = newParams.signal) != null ? _a : null; | |
if (signal) { | |
delete newParams.signal; | |
} | |
const logger = (_b = newParams.logger) != null ? _b : null; | |
if (logger) { | |
newParams.logger = {}; | |
} | |
const { id, promise } = agent.request( | |
"check", | |
{ source, flags, params: newParams }, | |
logger | |
); | |
if (signal == null ? void 0 : signal.aborted) { | |
agent.notify("cancel", { id }); | |
} else { | |
signal == null ? void 0 : signal.addEventListener("abort", () => { | |
agent.notify("cancel", { id }); | |
}); | |
} | |
return yield promise; | |
}); | |
} | |
// src/lib/env.ts | |
var RECHECK_BACKEND = () => process.env["RECHECK_BACKEND"] || "auto"; | |
var RECHECK_JAR = () => process.env["RECHECK_JAR"] || null; | |
var RECHECK_BIN = () => process.env["RECHECK_BIN"] || null; | |
// src/lib/exe.ts | |
var __mock__require = require; | |
var jar = () => { | |
const jarEnv = RECHECK_JAR(); | |
if (jarEnv !== null) { | |
return jarEnv; | |
} | |
try { | |
const exe = __mock__require.resolve("recheck-jar/package.json").replace(/\/package\.json$/, "/recheck.jar"); | |
return exe; | |
} catch (err) { | |
if (err && err.code == "MODULE_NOT_FOUND") { | |
return null; | |
} | |
throw err; | |
} | |
}; | |
var osNames = { | |
darwin: "macos", | |
linux: "linux", | |
win32: "windows" | |
}; | |
var cpuNames = { | |
x64: "x64" | |
}; | |
var bin = () => { | |
const binEnv = RECHECK_BIN(); | |
if (binEnv !== null) { | |
return binEnv; | |
} | |
const os = osNames[process.platform]; | |
const cpu = cpuNames[process.arch]; | |
const isWin32 = os === "windows"; | |
if (!os || !cpu) { | |
return null; | |
} | |
try { | |
const bin2 = isWin32 ? "recheck.exe" : "recheck"; | |
const pkg = `recheck-${os}-${cpu}/package.json`; | |
const exe = __mock__require.resolve(pkg).replace(/\/package\.json$/, `/${bin2}`); | |
return exe; | |
} catch (err) { | |
if (err && err.code == "MODULE_NOT_FOUND") { | |
return null; | |
} | |
throw err; | |
} | |
}; | |
// src/lib/java.ts | |
function ensure() { | |
return __async(this, null, function* () { | |
const jar2 = jar(); | |
if (jar2 === null) { | |
return null; | |
} | |
return yield start("java", ["-jar", jar2, "agent"]); | |
}); | |
} | |
// src/lib/native.ts | |
function ensure2() { | |
return __async(this, null, function* () { | |
const bin2 = bin(); | |
if (bin2 === null) { | |
return null; | |
} | |
return yield start(bin2, ["agent"]); | |
}); | |
} | |
// ../../modules/recheck-js/target/scala-2.13/recheck-js-opt/recheck.js | |
var $linkingInfo = Object.freeze({ | |
"esVersion": 6, | |
"assumingES6": true, | |
"productionMode": true, | |
"linkerVersion": "1.10.0", | |
"fileLevelThis": void 0 | |
}); | |
var $getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || (() => { | |
var ownKeysFun; | |
if (typeof Reflect !== "undefined" && Reflect.ownKeys) { | |
ownKeysFun = Reflect.ownKeys; | |
} else { | |
var getOwnPropertySymbols = Object.getOwnPropertySymbols || ((o) => []); | |
ownKeysFun = (o) => Object.getOwnPropertyNames(o).concat(getOwnPropertySymbols(o)); | |
} | |
; | |
return (o) => { | |
var ownKeys = ownKeysFun(o); | |
var descriptors = {}; | |
var len = ownKeys.length | 0; | |
var i = 0; | |
while (i !== len) { | |
var key = ownKeys[i]; | |
Object.defineProperty(descriptors, key, { | |
"configurable": true, | |
"enumerable": true, | |
"writable": true, | |
"value": Object.getOwnPropertyDescriptor(o, key) | |
}); | |
i = i + 1 | 0; | |
} | |
; | |
return descriptors; | |
}; | |
})(); | |
var $L0; | |
function $propertyName(arg0) { | |
for (var prop in arg0) { | |
return prop; | |
} | |
} | |
function $Char(c) { | |
this.c = c; | |
} | |
$Char.prototype.toString = function() { | |
return String.fromCharCode(this.c); | |
}; | |
function $newArrayObject(arg0, arg1) { | |
return $newArrayObjectInternal(arg0, arg1, 0); | |
} | |
function $newArrayObjectInternal(arg0, arg1, arg2) { | |
var result = new arg0.constr(arg1[arg2]); | |
if (arg2 < arg1.length - 1) { | |
var subArrayClassData = arg0.componentData; | |
var subLengthIndex = arg2 + 1; | |
var underlying = result.u; | |
for (var i = 0; i < underlying.length; i++) { | |
underlying[i] = $newArrayObjectInternal(subArrayClassData, arg1, subLengthIndex); | |
} | |
} | |
; | |
return result; | |
} | |
function $objectClone(arg0) { | |
return Object.create(Object.getPrototypeOf(arg0), $getOwnPropertyDescriptors(arg0)); | |
} | |
function $objectGetClass(arg0) { | |
switch (typeof arg0) { | |
case "string": { | |
return $d_T.getClassOf(); | |
} | |
case "number": { | |
if ($isInt(arg0)) { | |
if (arg0 << 24 >> 24 === arg0) { | |
return $d_jl_Byte.getClassOf(); | |
} else if (arg0 << 16 >> 16 === arg0) { | |
return $d_jl_Short.getClassOf(); | |
} else { | |
return $d_jl_Integer.getClassOf(); | |
} | |
} else if ($isFloat(arg0)) { | |
return $d_jl_Float.getClassOf(); | |
} else { | |
return $d_jl_Double.getClassOf(); | |
} | |
} | |
case "boolean": { | |
return $d_jl_Boolean.getClassOf(); | |
} | |
case "undefined": { | |
return $d_jl_Void.getClassOf(); | |
} | |
default: { | |
if (arg0 === null) { | |
return arg0.getClass__jl_Class(); | |
} else if (arg0 instanceof $c_RTLong) { | |
return $d_jl_Long.getClassOf(); | |
} else if (arg0 instanceof $Char) { | |
return $d_jl_Character.getClassOf(); | |
} else if (!!(arg0 && arg0.$classData)) { | |
return arg0.$classData.getClassOf(); | |
} else { | |
return null; | |
} | |
} | |
} | |
} | |
function $objectClassName(arg0) { | |
switch (typeof arg0) { | |
case "string": { | |
return "java.lang.String"; | |
} | |
case "number": { | |
if ($isInt(arg0)) { | |
if (arg0 << 24 >> 24 === arg0) { | |
return "java.lang.Byte"; | |
} else if (arg0 << 16 >> 16 === arg0) { | |
return "java.lang.Short"; | |
} else { | |
return "java.lang.Integer"; | |
} | |
} else if ($isFloat(arg0)) { | |
return "java.lang.Float"; | |
} else { | |
return "java.lang.Double"; | |
} | |
} | |
case "boolean": { | |
return "java.lang.Boolean"; | |
} | |
case "undefined": { | |
return "java.lang.Void"; | |
} | |
default: { | |
if (arg0 === null) { | |
return arg0.getClass__jl_Class(); | |
} else if (arg0 instanceof $c_RTLong) { | |
return "java.lang.Long"; | |
} else if (arg0 instanceof $Char) { | |
return "java.lang.Character"; | |
} else if (!!(arg0 && arg0.$classData)) { | |
return arg0.$classData.name; | |
} else { | |
return null.getName__T(); | |
} | |
} | |
} | |
} | |
function $dp_compareTo__O__I(instance, x0) { | |
switch (typeof instance) { | |
case "string": { | |
return $f_T__compareTo__O__I(instance, x0); | |
} | |
case "number": { | |
return $f_jl_Double__compareTo__O__I(instance, x0); | |
} | |
case "boolean": { | |
return $f_jl_Boolean__compareTo__O__I(instance, x0); | |
} | |
default: { | |
if (instance instanceof $c_RTLong) { | |
return $f_jl_Long__compareTo__O__I(instance, x0); | |
} else if (instance instanceof $Char) { | |
return $f_jl_Character__compareTo__O__I(instance, x0); | |
} else { | |
return instance.compareTo__O__I(x0); | |
} | |
} | |
} | |
} | |
function $dp_equals__O__Z(instance, x0) { | |
switch (typeof instance) { | |
case "string": { | |
return $f_T__equals__O__Z(instance, x0); | |
} | |
case "number": { | |
return $f_jl_Double__equals__O__Z(instance, x0); | |
} | |
case "boolean": { | |
return $f_jl_Boolean__equals__O__Z(instance, x0); | |
} | |
case "undefined": { | |
return $f_jl_Void__equals__O__Z(instance, x0); | |
} | |
default: { | |
if (!!(instance && instance.$classData) || instance === null) { | |
return instance.equals__O__Z(x0); | |
} else if (instance instanceof $c_RTLong) { | |
return $f_jl_Long__equals__O__Z(instance, x0); | |
} else if (instance instanceof $Char) { | |
return $f_jl_Character__equals__O__Z(instance, x0); | |
} else { | |
return $c_O.prototype.equals__O__Z.call(instance, x0); | |
} | |
} | |
} | |
} | |
function $dp_hashCode__I(instance) { | |
switch (typeof instance) { | |
case "string": { | |
return $f_T__hashCode__I(instance); | |
} | |
case "number": { | |
return $f_jl_Double__hashCode__I(instance); | |
} | |
case "boolean": { | |
return $f_jl_Boolean__hashCode__I(instance); | |
} | |
case "undefined": { | |
return $f_jl_Void__hashCode__I(instance); | |
} | |
default: { | |
if (!!(instance && instance.$classData) || instance === null) { | |
return instance.hashCode__I(); | |
} else if (instance instanceof $c_RTLong) { | |
return $f_jl_Long__hashCode__I(instance); | |
} else if (instance instanceof $Char) { | |
return $f_jl_Character__hashCode__I(instance); | |
} else { | |
return $c_O.prototype.hashCode__I.call(instance); | |
} | |
} | |
} | |
} | |
function $dp_subSequence__I__I__jl_CharSequence(instance, x0, x1) { | |
if (typeof instance === "string") { | |
return $f_T__subSequence__I__I__jl_CharSequence(instance, x0, x1); | |
} else { | |
return instance.subSequence__I__I__jl_CharSequence(x0, x1); | |
} | |
} | |
function $dp_toString__T(instance) { | |
return instance === void 0 ? "undefined" : instance.toString(); | |
} | |
function $intDiv(arg0, arg1) { | |
if (arg1 === 0) { | |
throw new $c_jl_ArithmeticException("/ by zero"); | |
} else { | |
return arg0 / arg1 | 0; | |
} | |
} | |
function $intMod(arg0, arg1) { | |
if (arg1 === 0) { | |
throw new $c_jl_ArithmeticException("/ by zero"); | |
} else { | |
return arg0 % arg1 | 0; | |
} | |
} | |
function $doubleToInt(arg0) { | |
return arg0 > 2147483647 ? 2147483647 : arg0 < -2147483648 ? -2147483648 : arg0 | 0; | |
} | |
function $arraycopyGeneric(arg0, arg1, arg2, arg3, arg4) { | |
if (arg0 !== arg2 || arg3 < arg1 || (arg1 + arg4 | 0) < arg3) { | |
for (var i = 0; i < arg4; i = i + 1 | 0) { | |
arg2[arg3 + i | 0] = arg0[arg1 + i | 0]; | |
} | |
} else { | |
for (var i = arg4 - 1 | 0; i >= 0; i = i - 1 | 0) { | |
arg2[arg3 + i | 0] = arg0[arg1 + i | 0]; | |
} | |
} | |
} | |
var $lastIDHash = 0; | |
var $idHashCodeMap = /* @__PURE__ */ new WeakMap(); | |
function $systemIdentityHashCode(obj) { | |
switch (typeof obj) { | |
case "string": { | |
return $f_T__hashCode__I(obj); | |
} | |
case "number": { | |
return $f_jl_Double__hashCode__I(obj); | |
} | |
case "bigint": { | |
var biHash = 0; | |
if (obj < BigInt(0)) { | |
obj = ~obj; | |
} | |
; | |
while (obj !== BigInt(0)) { | |
biHash = biHash ^ Number(BigInt.asIntN(32, obj)); | |
obj = obj >> BigInt(32); | |
} | |
; | |
return biHash; | |
} | |
case "boolean": { | |
return obj ? 1231 : 1237; | |
} | |
case "undefined": { | |
return 0; | |
} | |
case "symbol": { | |
var description = obj.description; | |
return description === void 0 ? 0 : $f_T__hashCode__I(description); | |
} | |
default: { | |
if (obj === null) { | |
return 0; | |
} else { | |
var hash = $idHashCodeMap.get(obj); | |
if (hash === void 0) { | |
hash = $lastIDHash + 1 | 0; | |
$lastIDHash = hash; | |
$idHashCodeMap.set(obj, hash); | |
} | |
; | |
return hash; | |
} | |
} | |
} | |
} | |
function $isByte(arg0) { | |
return typeof arg0 === "number" && arg0 << 24 >> 24 === arg0 && 1 / arg0 !== 1 / -0; | |
} | |
function $isShort(arg0) { | |
return typeof arg0 === "number" && arg0 << 16 >> 16 === arg0 && 1 / arg0 !== 1 / -0; | |
} | |
function $isInt(arg0) { | |
return typeof arg0 === "number" && (arg0 | 0) === arg0 && 1 / arg0 !== 1 / -0; | |
} | |
function $isFloat(arg0) { | |
return typeof arg0 === "number" && (arg0 !== arg0 || Math.fround(arg0) === arg0); | |
} | |
function $bC(arg0) { | |
return new $Char(arg0); | |
} | |
var $bC0 = $bC(0); | |
function $uC(arg0) { | |
return arg0 === null ? 0 : arg0.c; | |
} | |
function $uJ(arg0) { | |
return arg0 === null ? $L0 : arg0; | |
} | |
function $ct_O__($thiz) { | |
return $thiz; | |
} | |
function $c_O() { | |
} | |
$c_O.prototype.constructor = $c_O; | |
function $h_O() { | |
} | |
$h_O.prototype = $c_O.prototype; | |
$c_O.prototype.hashCode__I = function() { | |
return $systemIdentityHashCode(this); | |
}; | |
$c_O.prototype.equals__O__Z = function(that) { | |
return this === that; | |
}; | |
$c_O.prototype.toString__T = function() { | |
var i = this.hashCode__I(); | |
return $objectClassName(this) + "@" + (+(i >>> 0)).toString(16); | |
}; | |
$c_O.prototype.toString = function() { | |
return this.toString__T(); | |
}; | |
function $ac_O(arg) { | |
if (typeof arg === "number") { | |
this.u = new Array(arg); | |
for (var i = 0; i < arg; i++) { | |
this.u[i] = null; | |
} | |
} else { | |
this.u = arg; | |
} | |
} | |
$ac_O.prototype = new $h_O(); | |
$ac_O.prototype.constructor = $ac_O; | |
$ac_O.prototype.copyTo = function(srcPos, dest, destPos, length) { | |
$arraycopyGeneric(this.u, srcPos, dest.u, destPos, length); | |
}; | |
$ac_O.prototype.clone__O = function() { | |
return new $ac_O(this.u.slice()); | |
}; | |
function $ah_O() { | |
} | |
$ah_O.prototype = $ac_O.prototype; | |
function $ac_Z(arg) { | |
if (typeof arg === "number") { | |
this.u = new Array(arg); | |
for (var i = 0; i < arg; i++) { | |
this.u[i] = false; | |
} | |
} else { | |
this.u = arg; | |
} | |
} | |
$ac_Z.prototype = new $h_O(); | |
$ac_Z.prototype.constructor = $ac_Z; | |
$ac_Z.prototype.copyTo = function(srcPos, dest, destPos, length) { | |
$arraycopyGeneric(this.u, srcPos, dest.u, destPos, length); | |
}; | |
$ac_Z.prototype.clone__O = function() { | |
return new $ac_Z(this.u.slice()); | |
}; | |
function $ac_C(arg) { | |
if (typeof arg === "number") { | |
this.u = new Uint16Array(arg); | |
} else { | |
this.u = arg; | |
} | |
} | |
$ac_C.prototype = new $h_O(); | |
$ac_C.prototype.constructor = $ac_C; | |
$ac_C.prototype.copyTo = function(srcPos, dest, destPos, length) { | |
dest.u.set(this.u.subarray(srcPos, srcPos + length | 0), destPos); | |
}; | |
$ac_C.prototype.clone__O = function() { | |
return new $ac_C(this.u.slice()); | |
}; | |
function $ac_B(arg) { | |
if (typeof arg === "number") { | |
this.u = new Int8Array(arg); | |
} else { | |
this.u = arg; | |
} | |
} | |
$ac_B.prototype = new $h_O(); | |
$ac_B.prototype.constructor = $ac_B; | |
$ac_B.prototype.copyTo = function(srcPos, dest, destPos, length) { | |
dest.u.set(this.u.subarray(srcPos, srcPos + length | 0), destPos); | |
}; | |
$ac_B.prototype.clone__O = function() { | |
return new $ac_B(this.u.slice()); | |
}; | |
function $ac_S(arg) { | |
if (typeof arg === "number") { | |
this.u = new Int16Array(arg); | |
} else { | |
this.u = arg; | |
} | |
} | |
$ac_S.prototype = new $h_O(); | |
$ac_S.prototype.constructor = $ac_S; | |
$ac_S.prototype.copyTo = function(srcPos, dest, destPos, length) { | |
dest.u.set(this.u.subarray(srcPos, srcPos + length | 0), destPos); | |
}; | |
$ac_S.prototype.clone__O = function() { | |
return new $ac_S(this.u.slice()); | |
}; | |
function $ac_I(arg) { | |
if (typeof arg === "number") { | |
this.u = new Int32Array(arg); | |
} else { | |
this.u = arg; | |
} | |
} | |
$ac_I.prototype = new $h_O(); | |
$ac_I.prototype.constructor = $ac_I; | |
$ac_I.prototype.copyTo = function(srcPos, dest, destPos, length) { | |
dest.u.set(this.u.subarray(srcPos, srcPos + length | 0), destPos); | |
}; | |
$ac_I.prototype.clone__O = function() { | |
return new $ac_I(this.u.slice()); | |
}; | |
function $ac_J(arg) { | |
if (typeof arg === "number") { | |
this.u = new Array(arg); | |
for (var i = 0; i < arg; i++) { | |
this.u[i] = $L0; | |
} | |
} else { | |
this.u = arg; | |
} | |
} | |
$ac_J.prototype = new $h_O(); | |
$ac_J.prototype.constructor = $ac_J; | |
$ac_J.prototype.copyTo = function(srcPos, dest, destPos, length) { | |
$arraycopyGeneric(this.u, srcPos, dest.u, destPos, length); | |
}; | |
$ac_J.prototype.clone__O = function() { | |
return new $ac_J(this.u.slice()); | |
}; | |
function $ac_F(arg) { | |
if (typeof arg === "number") { | |
this.u = new Float32Array(arg); | |
} else { | |
this.u = arg; | |
} | |
} | |
$ac_F.prototype = new $h_O(); | |
$ac_F.prototype.constructor = $ac_F; | |
$ac_F.prototype.copyTo = function(srcPos, dest, destPos, length) { | |
dest.u.set(this.u.subarray(srcPos, srcPos + length | 0), destPos); | |
}; | |
$ac_F.prototype.clone__O = function() { | |
return new $ac_F(this.u.slice()); | |
}; | |
function $ac_D(arg) { | |
if (typeof arg === "number") { | |
this.u = new Float64Array(arg); | |
} else { | |
this.u = arg; | |
} | |
} | |
$ac_D.prototype = new $h_O(); | |
$ac_D.prototype.constructor = $ac_D; | |
$ac_D.prototype.copyTo = function(srcPos, dest, destPos, length) { | |
dest.u.set(this.u.subarray(srcPos, srcPos + length | 0), destPos); | |
}; | |
$ac_D.prototype.clone__O = function() { | |
return new $ac_D(this.u.slice()); | |
}; | |
function $TypeData() { | |
this.constr = void 0; | |
this.ancestors = null; | |
this.componentData = null; | |
this.arrayBase = null; | |
this.arrayDepth = 0; | |
this.zero = null; | |
this.arrayEncodedName = ""; | |
this._classOf = void 0; | |
this._arrayOf = void 0; | |
this.isAssignableFromFun = void 0; | |
this.wrapArray = void 0; | |
this.name = ""; | |
this.isPrimitive = false; | |
this.isInterface = false; | |
this.isArrayClass = false; | |
this.isJSClass = false; | |
this.isInstance = void 0; | |
} | |
$TypeData.prototype.initPrim = function(zero, arrayEncodedName, displayName, arrayClass, typedArrayClass) { | |
this.ancestors = {}; | |
this.zero = zero; | |
this.arrayEncodedName = arrayEncodedName; | |
var self = this; | |
this.isAssignableFromFun = (that) => that === self; | |
this.name = displayName; | |
this.isPrimitive = true; | |
this.isInstance = (obj) => false; | |
if (arrayClass !== void 0) { | |
this._arrayOf = new $TypeData().initSpecializedArray(this, arrayClass, typedArrayClass); | |
} | |
; | |
return this; | |
}; | |
$TypeData.prototype.initClass = function(internalNameObj, isInterface, fullName, ancestors, isJSType, parentData, isInstance) { | |
var internalName = $propertyName(internalNameObj); | |
this.ancestors = ancestors; | |
this.arrayEncodedName = "L" + fullName + ";"; | |
this.isAssignableFromFun = (that) => !!that.ancestors[internalName]; | |
this.isJSType = !!isJSType; | |
this.name = fullName; | |
this.isInterface = isInterface; | |
this.isInstance = isInstance || ((obj) => !!(obj && obj.$classData && obj.$classData.ancestors[internalName])); | |
return this; | |
}; | |
$TypeData.prototype.initSpecializedArray = function(componentData, arrayClass, typedArrayClass, isAssignableFromFun) { | |
arrayClass.prototype.$classData = this; | |
var name = "[" + componentData.arrayEncodedName; | |
this.constr = arrayClass; | |
this.ancestors = { | |
O: 1, | |
jl_Cloneable: 1, | |
Ljava_io_Serializable: 1 | |
}; | |
this.componentData = componentData; | |
this.arrayBase = componentData; | |
this.arrayDepth = 1; | |
this.arrayEncodedName = name; | |
this.name = name; | |
this.isArrayClass = true; | |
var self = this; | |
this.isAssignableFromFun = isAssignableFromFun || ((that) => self === that); | |
this.wrapArray = typedArrayClass ? (array) => new arrayClass(new typedArrayClass(array)) : (array) => new arrayClass(array); | |
this.isInstance = (obj) => obj instanceof arrayClass; | |
return this; | |
}; | |
$TypeData.prototype.initArray = function(componentData) { | |
function ArrayClass(arg) { | |
if (typeof arg === "number") { | |
this.u = new Array(arg); | |
for (var i = 0; i < arg; i++) { | |
this.u[i] = null; | |
} | |
} else { | |
this.u = arg; | |
} | |
} | |
ArrayClass.prototype = new $ah_O(); | |
ArrayClass.prototype.constructor = ArrayClass; | |
ArrayClass.prototype.copyTo = function(srcPos, dest, destPos, length) { | |
$arraycopyGeneric(this.u, srcPos, dest.u, destPos, length); | |
}; | |
ArrayClass.prototype.clone__O = function() { | |
return new ArrayClass(this.u.slice()); | |
}; | |
var arrayBase = componentData.arrayBase || componentData; | |
var arrayDepth = componentData.arrayDepth + 1; | |
ArrayClass.prototype.$classData = this; | |
var name = "[" + componentData.arrayEncodedName; | |
this.constr = ArrayClass; | |
this.ancestors = { | |
O: 1, | |
jl_Cloneable: 1, | |
Ljava_io_Serializable: 1 | |
}; | |
this.componentData = componentData; | |
this.arrayBase = arrayBase; | |
this.arrayDepth = arrayDepth; | |
this.arrayEncodedName = name; | |
this.name = name; | |
this.isArrayClass = true; | |
var isAssignableFromFun = (that) => { | |
var thatDepth = that.arrayDepth; | |
return thatDepth === arrayDepth ? arrayBase.isAssignableFromFun(that.arrayBase) : thatDepth > arrayDepth && arrayBase === $d_O; | |
}; | |
this.isAssignableFromFun = isAssignableFromFun; | |
this.wrapArray = (array) => new ArrayClass(array); | |
var self = this; | |
this.isInstance = (obj) => { | |
var data = obj && obj.$classData; | |
return !!data && (data === self || isAssignableFromFun(data)); | |
}; | |
return this; | |
}; | |
$TypeData.prototype.getArrayOf = function() { | |
if (!this._arrayOf) { | |
this._arrayOf = new $TypeData().initArray(this); | |
} | |
; | |
return this._arrayOf; | |
}; | |
$TypeData.prototype.getClassOf = function() { | |
if (!this._classOf) { | |
this._classOf = new $c_jl_Class(this); | |
} | |
; | |
return this._classOf; | |
}; | |
$TypeData.prototype.isAssignableFrom = function(that) { | |
return this === that || this.isAssignableFromFun(that); | |
}; | |
$TypeData.prototype.checkCast = function(obj) { | |
}; | |
$TypeData.prototype.getSuperclass = function() { | |
return this.parentData ? this.parentData.getClassOf() : null; | |
}; | |
$TypeData.prototype.getComponentType = function() { | |
return this.componentData ? this.componentData.getClassOf() : null; | |
}; | |
$TypeData.prototype.newArrayOfThisClass = function(lengths) { | |
var arrayClassData = this; | |
for (var i = 0; i < lengths.length; i++) { | |
arrayClassData = arrayClassData.getArrayOf(); | |
} | |
; | |
return $newArrayObject(arrayClassData, lengths); | |
}; | |
var $d_O = new $TypeData(); | |
$d_O.ancestors = { | |
O: 1 | |
}; | |
$d_O.arrayEncodedName = "Ljava.lang.Object;"; | |
$d_O.isAssignableFromFun = (that) => !that.isPrimitive; | |
$d_O.name = "java.lang.Object"; | |
$d_O.isInstance = (obj) => obj !== null; | |
$d_O._arrayOf = new $TypeData().initSpecializedArray($d_O, $ac_O, void 0, (that) => { | |
var thatDepth = that.arrayDepth; | |
return thatDepth === 1 ? !that.arrayBase.isPrimitive : thatDepth > 1; | |
}); | |
$c_O.prototype.$classData = $d_O; | |
var $d_V = new $TypeData().initPrim(void 0, "V", "void", void 0, void 0); | |
var $d_Z = new $TypeData().initPrim(false, "Z", "boolean", $ac_Z, void 0); | |
var $d_C = new $TypeData().initPrim(0, "C", "char", $ac_C, Uint16Array); | |
var $d_B = new $TypeData().initPrim(0, "B", "byte", $ac_B, Int8Array); | |
var $d_S = new $TypeData().initPrim(0, "S", "short", $ac_S, Int16Array); | |
var $d_I = new $TypeData().initPrim(0, "I", "int", $ac_I, Int32Array); | |
var $d_J = new $TypeData().initPrim(null, "J", "long", $ac_J, void 0); | |
var $d_F = new $TypeData().initPrim(0, "F", "float", $ac_F, Float32Array); | |
var $d_D = new $TypeData().initPrim(0, "D", "double", $ac_D, Float64Array); | |
function $c_Lcats_EvalInstances1() { | |
} | |
$c_Lcats_EvalInstances1.prototype = new $h_O(); | |
$c_Lcats_EvalInstances1.prototype.constructor = $c_Lcats_EvalInstances1; | |
function $h_Lcats_EvalInstances1() { | |
} | |
$h_Lcats_EvalInstances1.prototype = $c_Lcats_EvalInstances1.prototype; | |
function $c_Lcats_data_NonEmptyListInstances1() { | |
} | |
$c_Lcats_data_NonEmptyListInstances1.prototype = new $h_O(); | |
$c_Lcats_data_NonEmptyListInstances1.prototype.constructor = $c_Lcats_data_NonEmptyListInstances1; | |
function $h_Lcats_data_NonEmptyListInstances1() { | |
} | |
$h_Lcats_data_NonEmptyListInstances1.prototype = $c_Lcats_data_NonEmptyListInstances1.prototype; | |
function $c_Lcats_data_ValidatedInstances2() { | |
} | |
$c_Lcats_data_ValidatedInstances2.prototype = new $h_O(); | |
$c_Lcats_data_ValidatedInstances2.prototype.constructor = $c_Lcats_data_ValidatedInstances2; | |
function $h_Lcats_data_ValidatedInstances2() { | |
} | |
$h_Lcats_data_ValidatedInstances2.prototype = $c_Lcats_data_ValidatedInstances2.prototype; | |
function $f_Lcats_instances_ListInstancesBinCompat0__$init$__V($thiz) { | |
$thiz.Lcats_instances_package$list$__f_catsStdTraverseFilterForList = new $c_Lcats_instances_ListInstancesBinCompat0$$anon$6($thiz); | |
} | |
function $c_Lcats_kernel_EqFunctions() { | |
} | |
$c_Lcats_kernel_EqFunctions.prototype = new $h_O(); | |
$c_Lcats_kernel_EqFunctions.prototype.constructor = $c_Lcats_kernel_EqFunctions; | |
function $h_Lcats_kernel_EqFunctions() { | |
} | |
$h_Lcats_kernel_EqFunctions.prototype = $c_Lcats_kernel_EqFunctions.prototype; | |
function $c_Lcats_kernel_SemigroupFunctions() { | |
} | |
$c_Lcats_kernel_SemigroupFunctions.prototype = new $h_O(); | |
$c_Lcats_kernel_SemigroupFunctions.prototype.constructor = $c_Lcats_kernel_SemigroupFunctions; | |
function $h_Lcats_kernel_SemigroupFunctions() { | |
} | |
$h_Lcats_kernel_SemigroupFunctions.prototype = $c_Lcats_kernel_SemigroupFunctions.prototype; | |
function $c_Lcats_package$() { | |
this.Lcats_package$__f_catsInstancesForId = null; | |
this.Lcats_package$__f_catsRepresentableForId = null; | |
this.Lcats_package$__f_catsParallelForId = null; | |
this.Lcats_package$__f_Eq = null; | |
this.Lcats_package$__f_PartialOrder = null; | |
this.Lcats_package$__f_Order = null; | |
this.Lcats_package$__f_Comparison = null; | |
this.Lcats_package$__f_Hash = null; | |
this.Lcats_package$__f_Semigroup = null; | |
this.Lcats_package$__f_Monoid = null; | |
this.Lcats_package$__f_Group = null; | |
$n_Lcats_package$ = this; | |
this.Lcats_package$__f_catsInstancesForId = new $c_Lcats_package$$anon$1(); | |
this.Lcats_package$__f_catsRepresentableForId = new $c_Lcats_package$$anon$2(); | |
var evidence$32 = ($m_Lcats_Invariant$(), $m_Lcats_package$().Lcats_package$__f_catsInstancesForId); | |
this.Lcats_package$__f_catsParallelForId = new $c_Lcats_Parallel$$anon$2(evidence$32); | |
this.Lcats_package$__f_Eq = $m_Lcats_kernel_Eq$(); | |
this.Lcats_package$__f_PartialOrder = $m_Lcats_kernel_PartialOrder$(); | |
this.Lcats_package$__f_Order = $m_Lcats_kernel_Order$(); | |
this.Lcats_package$__f_Comparison = $m_Lcats_kernel_Comparison$(); | |
this.Lcats_package$__f_Hash = $m_Lcats_kernel_Hash$(); | |
this.Lcats_package$__f_Semigroup = $m_Lcats_kernel_Semigroup$(); | |
this.Lcats_package$__f_Monoid = $m_Lcats_kernel_Monoid$(); | |
this.Lcats_package$__f_Group = $m_Lcats_kernel_Group$(); | |
} | |
$c_Lcats_package$.prototype = new $h_O(); | |
$c_Lcats_package$.prototype.constructor = $c_Lcats_package$; | |
function $h_Lcats_package$() { | |
} | |
$h_Lcats_package$.prototype = $c_Lcats_package$.prototype; | |
var $d_Lcats_package$ = new $TypeData().initClass({ | |
Lcats_package$: 0 | |
}, false, "cats.package$", { | |
Lcats_package$: 1, | |
O: 1 | |
}); | |
$c_Lcats_package$.prototype.$classData = $d_Lcats_package$; | |
var $n_Lcats_package$; | |
function $m_Lcats_package$() { | |
if (!$n_Lcats_package$) { | |
$n_Lcats_package$ = new $c_Lcats_package$(); | |
} | |
; | |
return $n_Lcats_package$; | |
} | |
function $p_Lcodes_quine_labs_recheck_ReDoS$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Lcodes_quine_labs_recheck_common_Context__I($thiz, node, ctx$6) { | |
while (true) { | |
if (ctx$6.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx$6.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx$6.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx$6.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx$6.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx$6.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/ReDoS.scala:179"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/ReDoS.scala:179"); | |
} | |
} | |
; | |
var x1 = node; | |
if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction) { | |
var x2 = x1; | |
var ns = x2.Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction__f_children; | |
return ns.map__F1__O(new $c_sjsr_AnonFunction1(((this$1, ctx$6$1) => (node$2$2) => { | |
var node$2 = node$2$2; | |
return $p_Lcodes_quine_labs_recheck_ReDoS$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Lcodes_quine_labs_recheck_common_Context__I(this$1, node$2, ctx$6$1); | |
})($thiz, ctx$6))).sum__s_math_Numeric__O($m_s_math_Numeric$IntIsIntegral$()) | 0; | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence) { | |
var x3 = x1; | |
var ns$2 = x3.Lcodes_quine_labs_recheck_regexp_Pattern$Sequence__f_children; | |
return ns$2.map__F1__O(new $c_sjsr_AnonFunction1(((this$2, ctx$6$2) => (node$3$2) => { | |
var node$3 = node$3$2; | |
return $p_Lcodes_quine_labs_recheck_ReDoS$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Lcodes_quine_labs_recheck_common_Context__I(this$2, node$3, ctx$6$2); | |
})($thiz, ctx$6))).sum__s_math_Numeric__O($m_s_math_Numeric$IntIsIntegral$()) | 0; | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Capture) { | |
var x4 = x1; | |
var n = x4.Lcodes_quine_labs_recheck_regexp_Pattern$Capture__f_child; | |
node = n; | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$NamedCapture) { | |
var x6 = x1; | |
var n$2 = x6.Lcodes_quine_labs_recheck_regexp_Pattern$NamedCapture__f_child; | |
node = n$2; | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Group) { | |
var x9 = x1; | |
var n$3 = x9.Lcodes_quine_labs_recheck_regexp_Pattern$Group__f_child; | |
node = n$3; | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat) { | |
var x10 = x1; | |
var q = x10.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_quantifier; | |
var n$4 = x10.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_child; | |
var count = $p_Lcodes_quine_labs_recheck_ReDoS$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Lcodes_quine_labs_recheck_common_Context__I($thiz, n$4, ctx$6); | |
if (q instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Exact) { | |
var x2$2 = q; | |
var n$5 = x2$2.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Exact__f_n; | |
return count + n$5 | 0; | |
} else if (q instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Unbounded) { | |
var x4$2 = q; | |
var min = x4$2.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Unbounded__f_min; | |
return count + min | 0; | |
} else if (q instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Bounded) { | |
var x6$2 = q; | |
var max = x6$2.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Bounded__f_max; | |
return count + max | 0; | |
} else { | |
return count; | |
} | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LookAhead) { | |
var x11 = x1; | |
var n$6 = x11.Lcodes_quine_labs_recheck_regexp_Pattern$LookAhead__f_child; | |
node = n$6; | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LookBehind) { | |
var x13 = x1; | |
var n$7 = x13.Lcodes_quine_labs_recheck_regexp_Pattern$LookBehind__f_child; | |
node = n$7; | |
} else { | |
return 0; | |
} | |
} | |
} | |
function $c_Lcodes_quine_labs_recheck_ReDoS$() { | |
} | |
$c_Lcodes_quine_labs_recheck_ReDoS$.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_ReDoS$.prototype.constructor = $c_Lcodes_quine_labs_recheck_ReDoS$; | |
function $h_Lcodes_quine_labs_recheck_ReDoS$() { | |
} | |
$h_Lcodes_quine_labs_recheck_ReDoS$.prototype = $c_Lcodes_quine_labs_recheck_ReDoS$.prototype; | |
$c_Lcodes_quine_labs_recheck_ReDoS$.prototype.check__T__T__Lcodes_quine_labs_recheck_common_Parameters__s_Option__Lcodes_quine_labs_recheck_diagnostics_Diagnostics = function(source, flags, params, token) { | |
var ctx = $m_Lcodes_quine_labs_recheck_common_Context$().apply__s_concurrent_duration_Duration__s_Option__s_Option__Lcodes_quine_labs_recheck_common_Context(params.Lcodes_quine_labs_recheck_common_Parameters__f_timeout, token, params.Lcodes_quine_labs_recheck_common_Parameters__f_logger); | |
try { | |
var $$x1 = new $c_s_util_Success(void 0); | |
} catch (e) { | |
var e$2 = $m_sjsr_package$().wrapJavaScriptException__O__jl_Throwable(e); | |
if (e$2 !== null) { | |
matchEnd8: { | |
var $$x1; | |
if (e$2 !== null) { | |
var o11 = $m_s_util_control_NonFatal$().unapply__jl_Throwable__s_Option(e$2); | |
if (!o11.isEmpty__Z()) { | |
var e$3 = o11.get__O(); | |
var $$x1 = new $c_s_util_Failure(e$3); | |
break matchEnd8; | |
} | |
} | |
; | |
throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(e$2); | |
} | |
} else { | |
var $$x1; | |
throw e; | |
} | |
} | |
; | |
var result = $$x1.flatMap__F1__s_util_Try(new $c_sjsr_AnonFunction1(((ctx$1, source$1, flags$1, params$1) => (x$1$2) => { | |
if (ctx$1.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
ctx$1.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("parse: start"); | |
} | |
; | |
if (ctx$1.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx$1.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx$1.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx$1.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx$1.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx$1.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/ReDoS.scala:47"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/ReDoS.scala:47"); | |
} | |
} | |
; | |
var x1 = $m_Lcodes_quine_labs_recheck_regexp_Parser$().parse__T__T__Z__s_util_Either(source$1, flags$1, true); | |
if (x1 instanceof $c_s_util_Right) { | |
var x2 = x1; | |
var pattern = x2.s_util_Right__f_value; | |
var $$x2 = new $c_s_util_Success(pattern); | |
} else { | |
if (!(x1 instanceof $c_s_util_Left)) { | |
throw new $c_s_MatchError(x1); | |
} | |
; | |
var x3 = x1; | |
var ex = x3.s_util_Left__f_value; | |
var $$x2 = new $c_s_util_Failure(new $c_Lcodes_quine_labs_recheck_common_InvalidRegExpException(ex.getMessage__T())); | |
} | |
; | |
return $$x2.flatMap__F1__s_util_Try(new $c_sjsr_AnonFunction1(((ctx$1$1, params$1$1, source$1$1, flags$1$1) => (pattern$2$2) => { | |
var pattern$2 = pattern$2$2; | |
if (ctx$1$1.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
ctx$1$1.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("parse: finish\n pattern: " + pattern$2); | |
} | |
; | |
var x1$1 = params$1$1.Lcodes_quine_labs_recheck_common_Parameters__f_checker; | |
var x = $m_Lcodes_quine_labs_recheck_common_Checker$Automaton$(); | |
if (x === x1$1) { | |
return $m_Lcodes_quine_labs_recheck_ReDoS$().checkAutomaton__T__T__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Parameters__Lcodes_quine_labs_recheck_common_Context__s_util_Try(source$1$1, flags$1$1, pattern$2, params$1$1, ctx$1$1); | |
} else { | |
var x$3 = $m_Lcodes_quine_labs_recheck_common_Checker$Fuzz$(); | |
if (x$3 === x1$1) { | |
return $m_Lcodes_quine_labs_recheck_ReDoS$().checkFuzz__T__T__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Parameters__Lcodes_quine_labs_recheck_common_Context__s_util_Try(source$1$1, flags$1$1, pattern$2, params$1$1, ctx$1$1); | |
} else { | |
var x$5 = $m_Lcodes_quine_labs_recheck_common_Checker$Auto$(); | |
if (x$5 === x1$1) { | |
return $m_Lcodes_quine_labs_recheck_ReDoS$().checkAuto__T__T__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Parameters__Lcodes_quine_labs_recheck_common_Context__s_util_Try(source$1$1, flags$1$1, pattern$2, params$1$1, ctx$1$1); | |
} else { | |
throw new $c_s_MatchError(x1$1); | |
} | |
} | |
} | |
})(ctx$1, params$1, source$1, flags$1))); | |
})(ctx, source, flags, params))); | |
return result.recover__s_PartialFunction__s_util_Try(new $c_Lcodes_quine_labs_recheck_ReDoS$$anonfun$check$4(source, flags)).get__O(); | |
}; | |
$c_Lcodes_quine_labs_recheck_ReDoS$.prototype.checkAutomaton__T__T__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Parameters__Lcodes_quine_labs_recheck_common_Context__s_util_Try = function(source, flags, pattern, params, ctx) { | |
var x = params.Lcodes_quine_labs_recheck_common_Parameters__f_checker; | |
var x$2 = $m_Lcodes_quine_labs_recheck_common_Checker$Auto$(); | |
if (x !== null && x === x$2) { | |
var maxNFASize = params.Lcodes_quine_labs_recheck_common_Parameters__f_maxNFASize; | |
} else { | |
var maxNFASize = 2147483647; | |
} | |
; | |
try { | |
var $$x1 = new $c_s_util_Success(void 0); | |
} catch (e) { | |
var e$2 = $m_sjsr_package$().wrapJavaScriptException__O__jl_Throwable(e); | |
if (e$2 !== null) { | |
matchEnd8: { | |
var $$x1; | |
if (e$2 !== null) { | |
var o11 = $m_s_util_control_NonFatal$().unapply__jl_Throwable__s_Option(e$2); | |
if (!o11.isEmpty__Z()) { | |
var e$3 = o11.get__O(); | |
var $$x1 = new $c_s_util_Failure(e$3); | |
break matchEnd8; | |
} | |
} | |
; | |
throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(e$2); | |
} | |
} else { | |
var $$x1; | |
throw e; | |
} | |
} | |
; | |
var result = $$x1.flatMap__F1__s_util_Try(new $c_sjsr_AnonFunction1(((params$1, pattern$1, ctx$1, maxNFASize$1) => (x$9$2) => { | |
var x$1 = params$1.Lcodes_quine_labs_recheck_common_Parameters__f_checker; | |
var x$2$1 = $m_Lcodes_quine_labs_recheck_common_Checker$Auto$(); | |
if (x$1 !== null && x$1 === x$2$1 && $m_Lcodes_quine_labs_recheck_ReDoS$().repeatCount__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Context__I(pattern$1, ctx$1) >= params$1.Lcodes_quine_labs_recheck_common_Parameters__f_maxRepeatCount) { | |
if (ctx$1.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
ctx$1.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("auto: exceed maxRepeatCount"); | |
} | |
; | |
var $$x2 = new $c_s_util_Failure(new $c_Lcodes_quine_labs_recheck_common_UnsupportedException("The pattern contains too many repeat")); | |
} else { | |
var $$x2 = new $c_s_util_Success(void 0); | |
} | |
; | |
return $$x2.flatMap__F1__s_util_Try(new $c_sjsr_AnonFunction1(((pattern$1$1, ctx$2, params$2, maxNFASize$1$1) => (x$8$2) => { | |
var this$5 = $m_Lcodes_quine_labs_recheck_regexp_PatternExtensions$PatternOps$(); | |
if ($p_Lcodes_quine_labs_recheck_regexp_PatternExtensions$PatternOps$__loop$7__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z(this$5, pattern$1$1.Lcodes_quine_labs_recheck_regexp_Pattern__f_node)) { | |
if (ctx$2.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
ctx$2.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("automaton: constant pattern"); | |
} | |
; | |
return new $c_s_util_Success($m_s_package$().s_package$__f_Iterator.sc_Iterator$__f_scala$collection$Iterator$$_empty); | |
} else { | |
var x$3 = params$2.Lcodes_quine_labs_recheck_common_Parameters__f_checker; | |
var x$2$2 = $m_Lcodes_quine_labs_recheck_common_Checker$Auto$(); | |
if (x$3 !== null && x$3 === x$2$2) { | |
var this$7 = $m_Lcodes_quine_labs_recheck_regexp_PatternExtensions$PatternOps$(); | |
var $$x4 = $p_Lcodes_quine_labs_recheck_regexp_PatternExtensions$PatternOps$__loop$8__Lcodes_quine_labs_recheck_regexp_Pattern$Node__I(this$7, pattern$1$1.Lcodes_quine_labs_recheck_regexp_Pattern__f_node) >= params$2.Lcodes_quine_labs_recheck_common_Parameters__f_maxPatternSize; | |
} else { | |
var $$x4 = false; | |
} | |
; | |
if ($$x4) { | |
if (ctx$2.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
ctx$2.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("auto: exceed maxPatternSize"); | |
} | |
; | |
var $$x3 = new $c_s_util_Failure(new $c_Lcodes_quine_labs_recheck_common_UnsupportedException("The pattern is too large")); | |
} else { | |
var $$x3 = new $c_s_util_Success(void 0); | |
} | |
; | |
return $$x3.flatMap__F1__s_util_Try(new $c_sjsr_AnonFunction1(((pattern$1$2, ctx$2$1, maxNFASize$1$2) => (x$7$2) => $m_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$().build__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Context__s_util_Try(pattern$1$2, ctx$2$1).flatMap__F1__s_util_Try(new $c_sjsr_AnonFunction1(((maxNFASize$1$3, ctx$2$2) => (epsNFA$2) => { | |
var epsNFA = epsNFA$2; | |
try { | |
var $$x5 = new $c_s_util_Success(epsNFA.toOrderedNFA__I__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_automaton_OrderedNFA(maxNFASize$1$3, ctx$2$2).rename__Lcodes_quine_labs_recheck_automaton_OrderedNFA().mapAlphabet__F1__Lcodes_quine_labs_recheck_automaton_OrderedNFA(new $c_sjsr_AnonFunction1((x$6$2) => { | |
var x$6 = x$6$2; | |
return x$6.head__Lcodes_quine_labs_recheck_unicode_UChar(); | |
}))); | |
} catch (e$1) { | |
var e$2$1 = $m_sjsr_package$().wrapJavaScriptException__O__jl_Throwable(e$1); | |
if (e$2$1 !== null) { | |
matchEnd8$1: { | |
var $$x5; | |
if (e$2$1 !== null) { | |
var o11$1 = $m_s_util_control_NonFatal$().unapply__jl_Throwable__s_Option(e$2$1); | |
if (!o11$1.isEmpty__Z()) { | |
var e$3$1 = o11$1.get__O(); | |
var $$x5 = new $c_s_util_Failure(e$3$1); | |
break matchEnd8$1; | |
} | |
} | |
; | |
throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(e$2$1); | |
} | |
} else { | |
var $$x5; | |
throw e$1; | |
} | |
} | |
; | |
return $$x5.map__F1__s_util_Try(new $c_sjsr_AnonFunction1(((maxNFASize$1$4, ctx$2$3) => (orderedNFA$2) => { | |
var orderedNFA = orderedNFA$2; | |
return $m_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$().check__Lcodes_quine_labs_recheck_automaton_OrderedNFA__I__Lcodes_quine_labs_recheck_common_Context__sc_Iterator(orderedNFA, maxNFASize$1$4, ctx$2$3); | |
})(maxNFASize$1$3, ctx$2$2))); | |
})(maxNFASize$1$2, ctx$2$1))))(pattern$1$1, ctx$2, maxNFASize$1$1))); | |
} | |
})(pattern$1, ctx$1, params$1, maxNFASize$1))); | |
})(params, pattern, ctx, maxNFASize))); | |
return result.map__F1__s_util_Try(new $c_sjsr_AnonFunction1(((params$3, source$1, flags$1) => (cs$2) => { | |
var cs = cs$2; | |
var f = new $c_sjsr_AnonFunction1(((params$2$1, source$2, flags$2) => (x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (x0$1 instanceof $c_Lcodes_quine_labs_recheck_automaton_Complexity$Vulnerable) { | |
var x2 = x0$1; | |
var $$x7 = params$2$1.Lcodes_quine_labs_recheck_common_Parameters__f_recallLimit; | |
var $$x6 = params$2$1.Lcodes_quine_labs_recheck_common_Parameters__f_maxRecallStringSize; | |
var this$13 = $m_s_$less$colon$less$(); | |
var attack = x2.buildAttackPattern__I__I__s_$eq$colon$eq__Lcodes_quine_labs_recheck_diagnostics_AttackPattern($$x7, $$x6, this$13.s_$less$colon$less$__f_singleton); | |
return new $c_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Vulnerable(source$2, flags$2, x2.toAttackComplexity__Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Vulnerable(), attack, x2.hotspot__Lcodes_quine_labs_recheck_diagnostics_Hotspot(), $m_Lcodes_quine_labs_recheck_common_Checker$Automaton$()); | |
} else if (x0$1 instanceof $c_Lcodes_quine_labs_recheck_automaton_Complexity$Safe) { | |
var x3 = x0$1; | |
return new $c_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Safe(source$2, flags$2, x3.toAttackComplexity__Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Safe(), $m_Lcodes_quine_labs_recheck_common_Checker$Automaton$()); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
})(params$3, source$1, flags$1)); | |
var this$20 = new $c_sc_Iterator$$anon$9(cs, f); | |
var xs$1 = new $c_sjsr_AnonFunction0(((source$2$1, flags$2$1) => () => { | |
$m_s_package$(); | |
var array = [new $c_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Safe(source$2$1, flags$2$1, new $c_Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$UnknownSafe(false), $m_Lcodes_quine_labs_recheck_common_Checker$Automaton$())]; | |
var xs = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
var this$19 = new $c_sc_IndexedSeqView$Id(xs); | |
return $ct_sc_IndexedSeqView$IndexedSeqViewIterator__sc_IndexedSeqView__(new $c_sc_IndexedSeqView$IndexedSeqViewIterator(), this$19); | |
})(source$1, flags$1)); | |
return $f_sc_Iterator__concat__F0__sc_Iterator(this$20, xs$1); | |
})(params, source, flags))).map__F1__s_util_Try(new $c_sjsr_AnonFunction1(((source$3, flags$3, params$4, ctx$3) => (ds$2) => { | |
var ds = ds$2; | |
return $m_Lcodes_quine_labs_recheck_ReDoS$().recallValidation__T__T__s_concurrent_duration_Duration__sc_Iterator__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_diagnostics_Diagnostics(source$3, flags$3, params$4.Lcodes_quine_labs_recheck_common_Parameters__f_recallTimeout, ds, ctx$3); | |
})(source, flags, params, ctx))).recoverWith__s_PartialFunction__s_util_Try(new $c_Lcodes_quine_labs_recheck_ReDoS$$anonfun$checkAutomaton$13()); | |
}; | |
$c_Lcodes_quine_labs_recheck_ReDoS$.prototype.checkFuzz__T__T__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Parameters__Lcodes_quine_labs_recheck_common_Context__s_util_Try = function(source, flags, pattern, params, ctx) { | |
var random = $ct_s_util_Random__J__(new $c_s_util_Random(), params.Lcodes_quine_labs_recheck_common_Parameters__f_randomSeed); | |
var result = $m_Lcodes_quine_labs_recheck_fuzz_FuzzProgram$().from__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Context__s_util_Try(pattern, ctx).map__F1__s_util_Try(new $c_sjsr_AnonFunction1(((pattern$1, random$1, params$1, ctx$1) => (fuzz$2) => { | |
var fuzz = fuzz$2; | |
return $m_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$().check__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_fuzz_FuzzProgram__s_util_Random__Lcodes_quine_labs_recheck_common_Seeder__I__I__s_concurrent_duration_Duration__I__s_concurrent_duration_Duration__I__I__s_concurrent_duration_Duration__I__I__I__I__I__I__I__D__Lcodes_quine_labs_recheck_common_AccelerationMode__Lcodes_quine_labs_recheck_common_Context__sc_Iterator(pattern$1, fuzz, random$1, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_seeder, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_maxSimpleRepeatCount, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_seedingLimit, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_seedingTimeout, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_incubationLimit, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_incubationTimeout, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_maxGeneStringSize, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_attackLimit, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_attackTimeout, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_crossoverSize, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_mutationSize, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_maxAttackStringSize, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_maxInitialGenerationSize, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_maxGenerationSize, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_maxIteration, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_maxDegree, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_heatRatio, params$1.Lcodes_quine_labs_recheck_common_Parameters__f_accelerationMode, ctx$1); | |
})(pattern, random, params, ctx))); | |
return result.map__F1__s_util_Try(new $c_sjsr_AnonFunction1(((params$2, source$1, flags$1) => (rs$2) => { | |
var rs = rs$2; | |
var f = new $c_sjsr_AnonFunction1(((params$3, source$3, flags$3) => (x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (x0$1 !== null) { | |
var complexity = x0$1.T3__f__1; | |
var attack = x0$1.T3__f__2; | |
var hotspot = x0$1.T3__f__3; | |
var recallAttack = attack.adjust__Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Vulnerable__I__I__Lcodes_quine_labs_recheck_diagnostics_AttackPattern(complexity, params$3.Lcodes_quine_labs_recheck_common_Parameters__f_recallLimit, params$3.Lcodes_quine_labs_recheck_common_Parameters__f_maxRecallStringSize); | |
return new $c_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Vulnerable(source$3, flags$3, complexity, recallAttack, hotspot, $m_Lcodes_quine_labs_recheck_common_Checker$Fuzz$()); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
})(params$2, source$1, flags$1)); | |
var this$10 = new $c_sc_Iterator$$anon$9(rs, f); | |
var xs$1 = new $c_sjsr_AnonFunction0(((source$3$1, flags$3$1) => () => { | |
$m_s_package$(); | |
var array = [new $c_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Safe(source$3$1, flags$3$1, new $c_Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$UnknownSafe(true), $m_Lcodes_quine_labs_recheck_common_Checker$Fuzz$())]; | |
var xs = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
var this$9 = new $c_sc_IndexedSeqView$Id(xs); | |
return $ct_sc_IndexedSeqView$IndexedSeqViewIterator__sc_IndexedSeqView__(new $c_sc_IndexedSeqView$IndexedSeqViewIterator(), this$9); | |
})(source$1, flags$1)); | |
return $f_sc_Iterator__concat__F0__sc_Iterator(this$10, xs$1); | |
})(params, source, flags))).map__F1__s_util_Try(new $c_sjsr_AnonFunction1(((source$2, flags$2, params$4, ctx$2) => (ds$2) => { | |
var ds = ds$2; | |
return $m_Lcodes_quine_labs_recheck_ReDoS$().recallValidation__T__T__s_concurrent_duration_Duration__sc_Iterator__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_diagnostics_Diagnostics(source$2, flags$2, params$4.Lcodes_quine_labs_recheck_common_Parameters__f_recallTimeout, ds, ctx$2); | |
})(source, flags, params, ctx))).recoverWith__s_PartialFunction__s_util_Try(new $c_Lcodes_quine_labs_recheck_ReDoS$$anonfun$checkFuzz$6()); | |
}; | |
$c_Lcodes_quine_labs_recheck_ReDoS$.prototype.checkAuto__T__T__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Parameters__Lcodes_quine_labs_recheck_common_Context__s_util_Try = function(source, flags, pattern, params, ctx) { | |
return this.checkAutomaton__T__T__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Parameters__Lcodes_quine_labs_recheck_common_Context__s_util_Try(source, flags, pattern, params, ctx).recoverWith__s_PartialFunction__s_util_Try(new $c_Lcodes_quine_labs_recheck_ReDoS$$anonfun$checkAuto$1(source, flags, pattern, params, ctx)); | |
}; | |
$c_Lcodes_quine_labs_recheck_ReDoS$.prototype.recallValidation__T__T__s_concurrent_duration_Duration__sc_Iterator__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_diagnostics_Diagnostics = function(source, flags, timeout, ds, ctx) { | |
var p = new $c_sjsr_AnonFunction1(((source$1, flags$1, timeout$1, ctx$1) => (x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (!(x0$1 instanceof $c_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Vulnerable)) { | |
return true; | |
} else { | |
var x2 = x0$1; | |
var this$3 = $m_Lcodes_quine_labs_recheck_recall_RecallValidator$(); | |
var pattern = x2.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Vulnerable__f_attack; | |
var f = ((ctx$5) => (code$2, timeout$2) => { | |
var code = code$2; | |
var timeout$3 = timeout$2; | |
return $m_Lcodes_quine_labs_recheck_exec_NodeExecutor$().exec__T__s_Option__Lcodes_quine_labs_recheck_common_Context__s_Option(code, timeout$3, ctx$5); | |
})(ctx$1); | |
_return: { | |
if (ctx$1.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx$1.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx$1.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx$1.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx$1.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx$1.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/recall/RecallValidator.scala:28"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/recall/RecallValidator.scala:28"); | |
} | |
} | |
; | |
var code$1 = this$3.generate__T__T__Lcodes_quine_labs_recheck_diagnostics_AttackPattern__T(source$1, flags$1, pattern); | |
if (ctx$1.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
ctx$1.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("recall: code\n" + code$1); | |
} | |
; | |
var that = $m_s_concurrent_duration_Duration$().s_concurrent_duration_Duration$__f_Zero; | |
if ($f_s_math_Ordered__$less__O__Z(timeout$1, that)) { | |
var x1 = $m_Lcodes_quine_labs_recheck_recall_RecallResult$Timeout$(); | |
break _return; | |
} | |
; | |
if (timeout$1 instanceof $c_s_concurrent_duration_Duration$Infinite) { | |
var this$4 = $m_s_Option$().apply__O__s_Option(ctx$1.Lcodes_quine_labs_recheck_common_Context__f_deadline); | |
if (this$4.isEmpty__Z()) { | |
var arg2 = $m_s_None$(); | |
} else { | |
var arg1 = this$4.get__O(); | |
var x$1 = arg1; | |
var other = $m_s_concurrent_duration_Deadline$().now__s_concurrent_duration_Deadline(); | |
var arg2 = new $c_s_Some(x$1.s_concurrent_duration_Deadline__f_time.$minus__s_concurrent_duration_FiniteDuration__s_concurrent_duration_FiniteDuration(other.s_concurrent_duration_Deadline__f_time)); | |
} | |
; | |
var output = f(code$1, arg2); | |
} else { | |
if (!(timeout$1 instanceof $c_s_concurrent_duration_FiniteDuration)) { | |
throw new $c_s_MatchError(timeout$1); | |
} | |
; | |
var x3 = timeout$1; | |
if (ctx$1.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null) { | |
var this$5 = ctx$1.Lcodes_quine_labs_recheck_common_Context__f_deadline; | |
var other$1 = $m_s_concurrent_duration_Deadline$().now__s_concurrent_duration_Deadline(); | |
var this$6 = this$5.s_concurrent_duration_Deadline__f_time.$minus__s_concurrent_duration_FiniteDuration__s_concurrent_duration_FiniteDuration(other$1.s_concurrent_duration_Deadline__f_time); | |
var $$x1 = $f_s_math_Ordered__$less__O__Z(this$6, x3); | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
var this$7 = ctx$1.Lcodes_quine_labs_recheck_common_Context__f_deadline; | |
var other$2 = $m_s_concurrent_duration_Deadline$().now__s_concurrent_duration_Deadline(); | |
var newTimeout = this$7.s_concurrent_duration_Deadline__f_time.$minus__s_concurrent_duration_FiniteDuration__s_concurrent_duration_FiniteDuration(other$2.s_concurrent_duration_Deadline__f_time); | |
} else { | |
var newTimeout = x3; | |
} | |
; | |
var arg2$1 = new $c_s_Some(newTimeout); | |
var output = f(code$1, arg2$1); | |
} | |
; | |
var x1 = this$3.result__s_Option__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_recall_RecallResult(output, ctx$1); | |
} | |
; | |
if (!(x1 instanceof $c_Lcodes_quine_labs_recheck_recall_RecallResult$Finish)) { | |
var x = $m_Lcodes_quine_labs_recheck_recall_RecallResult$Timeout$(); | |
if (x === x1) { | |
return true; | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_recall_RecallResult$Error) { | |
var x5 = x1; | |
var message = x5.Lcodes_quine_labs_recheck_recall_RecallResult$Error__f_message; | |
throw new $c_Lcodes_quine_labs_recheck_common_UnexpectedException(message); | |
} else { | |
throw new $c_s_MatchError(x1); | |
} | |
} else { | |
return false; | |
} | |
} | |
})(source, flags, timeout, ctx)); | |
return new $c_sc_Iterator$$anon$6(ds, p, false).next__O(); | |
}; | |
$c_Lcodes_quine_labs_recheck_ReDoS$.prototype.repeatCount__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Context__I = function(pattern, ctx) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/ReDoS.scala:176"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/ReDoS.scala:176"); | |
} | |
} | |
; | |
return $p_Lcodes_quine_labs_recheck_ReDoS$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Lcodes_quine_labs_recheck_common_Context__I(this, pattern.Lcodes_quine_labs_recheck_regexp_Pattern__f_node, ctx); | |
}; | |
var $d_Lcodes_quine_labs_recheck_ReDoS$ = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_ReDoS$: 0 | |
}, false, "codes.quine.labs.recheck.ReDoS$", { | |
Lcodes_quine_labs_recheck_ReDoS$: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_ReDoS$.prototype.$classData = $d_Lcodes_quine_labs_recheck_ReDoS$; | |
var $n_Lcodes_quine_labs_recheck_ReDoS$; | |
function $m_Lcodes_quine_labs_recheck_ReDoS$() { | |
if (!$n_Lcodes_quine_labs_recheck_ReDoS$) { | |
$n_Lcodes_quine_labs_recheck_ReDoS$ = new $c_Lcodes_quine_labs_recheck_ReDoS$(); | |
} | |
; | |
return $n_Lcodes_quine_labs_recheck_ReDoS$; | |
} | |
function $p_Lcodes_quine_labs_recheck_ReDoSJS$__decodeLogger__Lio_circe_Decoder($thiz) { | |
var this$2 = $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeUnit; | |
var f = new $c_sjsr_AnonFunction1((x$1$2) => null); | |
return new $c_Lio_circe_Decoder$$anon$1(this$2, f); | |
} | |
function $c_Lcodes_quine_labs_recheck_ReDoSJS$() { | |
} | |
$c_Lcodes_quine_labs_recheck_ReDoSJS$.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_ReDoSJS$.prototype.constructor = $c_Lcodes_quine_labs_recheck_ReDoSJS$; | |
function $h_Lcodes_quine_labs_recheck_ReDoSJS$() { | |
} | |
$h_Lcodes_quine_labs_recheck_ReDoSJS$.prototype = $c_Lcodes_quine_labs_recheck_ReDoSJS$.prototype; | |
$c_Lcodes_quine_labs_recheck_ReDoSJS$.prototype.check__T__T__sjs_js_$bar__sjs_js_Any = function(source, flags, originalParams) { | |
var this$7 = $m_Lio_circe_scalajs_package$(); | |
var input = originalParams === void 0 ? Object() : originalParams; | |
var decodeLogger = $p_Lcodes_quine_labs_recheck_ReDoSJS$__decodeLogger__Lio_circe_Decoder(this); | |
var x1 = this$7.convertJsToJson__sjs_js_Any__s_util_Either(input); | |
if (x1 instanceof $c_s_util_Right) { | |
var x2 = x1; | |
var json = x2.s_util_Right__f_value; | |
var c = new $c_Lio_circe_cursor_TopCursor(json, null, null); | |
var x1$1 = $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$decodeParameters$1__Lio_circe_HCursor__Lio_circe_Decoder__s_util_Either(c, decodeLogger); | |
} else { | |
if (!(x1 instanceof $c_s_util_Left)) { | |
throw new $c_s_MatchError(x1); | |
} | |
; | |
var x3 = x1; | |
var x1$1 = x3; | |
} | |
; | |
if (x1$1 instanceof $c_s_util_Right) { | |
var x2$1 = x1$1; | |
var params = x2$1.s_util_Right__f_value; | |
var this$9 = params.Lcodes_quine_labs_recheck_common_Parameters__f_logger; | |
var cond = !this$9.isEmpty__Z(); | |
if (cond) { | |
if (!!!$m_sjs_js_WrappedDictionary$Cache$().sjs_js_WrappedDictionary$Cache$__f_safeHasOwnProperty.call(originalParams, "logger")) { | |
throw $ct_ju_NoSuchElementException__T__(new $c_ju_NoSuchElementException(), "key not found: logger"); | |
} | |
; | |
var jsLogger = originalParams.logger; | |
var logger = new $c_s_Some(new $c_Lcodes_quine_labs_recheck_ReDoSJS$$anonfun$$nestedInanonfun$check$2$1(jsLogger)); | |
} else { | |
var logger = $m_s_None$(); | |
} | |
; | |
var $$x1 = $m_Lcodes_quine_labs_recheck_ReDoS$(); | |
var x$2 = params.Lcodes_quine_labs_recheck_common_Parameters__f_accelerationMode; | |
var x$3 = params.Lcodes_quine_labs_recheck_common_Parameters__f_attackLimit; | |
var x$4 = params.Lcodes_quine_labs_recheck_common_Parameters__f_attackTimeout; | |
var x$5 = params.Lcodes_quine_labs_recheck_common_Parameters__f_checker; | |
var x$6 = params.Lcodes_quine_labs_recheck_common_Parameters__f_crossoverSize; | |
var x$7 = params.Lcodes_quine_labs_recheck_common_Parameters__f_heatRatio; | |
var x$8 = params.Lcodes_quine_labs_recheck_common_Parameters__f_incubationLimit; | |
var x$9 = params.Lcodes_quine_labs_recheck_common_Parameters__f_incubationTimeout; | |
var x$10 = params.Lcodes_quine_labs_recheck_common_Parameters__f_maxAttackStringSize; | |
var x$11 = params.Lcodes_quine_labs_recheck_common_Parameters__f_maxDegree; | |
var x$12 = params.Lcodes_quine_labs_recheck_common_Parameters__f_maxGeneStringSize; | |
var x$13 = params.Lcodes_quine_labs_recheck_common_Parameters__f_maxGenerationSize; | |
var x$14 = params.Lcodes_quine_labs_recheck_common_Parameters__f_maxInitialGenerationSize; | |
var x$15 = params.Lcodes_quine_labs_recheck_common_Parameters__f_maxIteration; | |
var x$16 = params.Lcodes_quine_labs_recheck_common_Parameters__f_maxNFASize; | |
var x$17 = params.Lcodes_quine_labs_recheck_common_Parameters__f_maxPatternSize; | |
var x$18 = params.Lcodes_quine_labs_recheck_common_Parameters__f_maxRecallStringSize; | |
var x$19 = params.Lcodes_quine_labs_recheck_common_Parameters__f_maxRepeatCount; | |
var x$20 = params.Lcodes_quine_labs_recheck_common_Parameters__f_maxSimpleRepeatCount; | |
var x$21 = params.Lcodes_quine_labs_recheck_common_Parameters__f_mutationSize; | |
var t = params.Lcodes_quine_labs_recheck_common_Parameters__f_randomSeed; | |
var lo = t.RTLong__f_lo; | |
var hi = t.RTLong__f_hi; | |
var x$23 = params.Lcodes_quine_labs_recheck_common_Parameters__f_recallLimit; | |
var x$24 = params.Lcodes_quine_labs_recheck_common_Parameters__f_recallTimeout; | |
var x$25 = params.Lcodes_quine_labs_recheck_common_Parameters__f_seeder; | |
var x$26 = params.Lcodes_quine_labs_recheck_common_Parameters__f_seedingLimit; | |
var x$27 = params.Lcodes_quine_labs_recheck_common_Parameters__f_seedingTimeout; | |
var x$28 = params.Lcodes_quine_labs_recheck_common_Parameters__f_timeout; | |
var d = $$x1.check__T__T__Lcodes_quine_labs_recheck_common_Parameters__s_Option__Lcodes_quine_labs_recheck_diagnostics_Diagnostics(source, flags, new $c_Lcodes_quine_labs_recheck_common_Parameters(x$2, x$3, x$4, x$5, x$6, x$7, x$8, x$9, logger, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, new $c_RTLong(lo, hi), x$23, x$24, x$25, x$26, x$27, x$28), $m_s_None$()); | |
return $m_Lio_circe_scalajs_package$().convertJsonToJs__Lio_circe_Json__sjs_js_Any($m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$encodeDiagnostics$1__Lcodes_quine_labs_recheck_diagnostics_Diagnostics__Lio_circe_Json(d)); | |
} else if (x1$1 instanceof $c_s_util_Left) { | |
var x3$1 = x1$1; | |
var ex = x3$1.s_util_Left__f_value; | |
throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(ex); | |
} else { | |
throw new $c_s_MatchError(x1$1); | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_ReDoSJS$.prototype.codes$quine$labs$recheck$ReDoSJS$$$anonfun$check$3__T__sjs_js_Function1__V = function(message, jsLogger$1) { | |
jsLogger$1(message); | |
}; | |
var $d_Lcodes_quine_labs_recheck_ReDoSJS$ = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_ReDoSJS$: 0 | |
}, false, "codes.quine.labs.recheck.ReDoSJS$", { | |
Lcodes_quine_labs_recheck_ReDoSJS$: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_ReDoSJS$.prototype.$classData = $d_Lcodes_quine_labs_recheck_ReDoSJS$; | |
var $n_Lcodes_quine_labs_recheck_ReDoSJS$; | |
function $m_Lcodes_quine_labs_recheck_ReDoSJS$() { | |
if (!$n_Lcodes_quine_labs_recheck_ReDoSJS$) { | |
$n_Lcodes_quine_labs_recheck_ReDoSJS$ = new $c_Lcodes_quine_labs_recheck_ReDoSJS$(); | |
} | |
; | |
return $n_Lcodes_quine_labs_recheck_ReDoSJS$; | |
} | |
function $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__isAtom__sci_Seq__Z($thiz, sc) { | |
return sc.length__I() === 1 && !$thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_graph.Lcodes_quine_labs_recheck_data_Graph__f_neighbors.apply__O__O(sc.head__O()).exists__F1__Z(new $c_sjsr_AnonFunction1(((sc$1) => (x$5$2) => { | |
var x$5 = x$5$2; | |
var x = x$5._2__O(); | |
var y = sc$1.head__O(); | |
return $m_sr_BoxesRunTime$().equals__O__O__Z(x, y); | |
})(sc))); | |
} | |
function $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkExponential__sc_Iterator($thiz) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
$thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("automaton: find EDA"); | |
} | |
; | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:98"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:98"); | |
} | |
} | |
; | |
var this$2 = $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_scc.iterator__sc_Iterator(); | |
var p = new $c_sjsr_AnonFunction1(((this$1) => (sc$2) => { | |
var sc = sc$2; | |
return $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__isAtom__sci_Seq__Z(this$1, sc); | |
})($thiz)); | |
var this$3 = new $c_sc_Iterator$$anon$6(this$2, p, true); | |
var f = new $c_sjsr_AnonFunction1(((this$2$1) => (sc$3$2) => { | |
var sc$3 = sc$3$2; | |
return $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkExponentialComponent__sci_IndexedSeq__s_Option(this$2$1, sc$3); | |
})($thiz)); | |
var this$8 = new $c_sc_Iterator$$anon$10(this$3, f); | |
var f$1 = new $c_sjsr_AnonFunction1(((this$3$1) => (pump$2) => { | |
var pump = pump$2; | |
var this$7 = $m_s_package$().s_package$__f_Vector; | |
var array = [pump]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
var x1 = $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__witness__sci_Seq__T2(this$3$1, this$7.from__sc_IterableOnce__sci_Vector(elems)); | |
if (x1 === null) { | |
throw new $c_s_MatchError(x1); | |
} | |
; | |
var w = x1._1__O(); | |
var hotspot = x1._2__O(); | |
return new $c_Lcodes_quine_labs_recheck_automaton_Complexity$Exponential(w, hotspot); | |
})($thiz)); | |
return new $c_sc_Iterator$$anon$9(this$8, f$1); | |
} | |
function $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkExponentialComponent__sci_IndexedSeq__s_Option($thiz, sc) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:106"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:106"); | |
} | |
} | |
; | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:107"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:107"); | |
} | |
} | |
; | |
var edges = $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccPairEdges.apply__O__O($ct_T2__O__O__(new $c_T2(), sc, sc)); | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:109"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:109"); | |
} | |
} | |
; | |
_return: { | |
var it = edges.iterator__sc_Iterator(); | |
while (it.hasNext__Z()) { | |
var a = it.next__O(); | |
var x0$1 = a; | |
if (x0$1 === null) { | |
throw new $c_s_MatchError(x0$1); | |
} | |
; | |
var es = x0$1._2__O(); | |
var $$x1 = es.length__I(); | |
var this$1 = es.distinct__O(); | |
if ($$x1 !== this$1.length__I()) { | |
var found = new $c_s_Some(a); | |
break _return; | |
} | |
} | |
; | |
var found = $m_s_None$(); | |
} | |
; | |
if (found instanceof $c_s_Some) { | |
var x2 = found; | |
var p3 = x2.s_Some__f_value; | |
if (p3 !== null) { | |
var a$1 = p3._1__O(); | |
var es$1 = p3._2__O(); | |
var this$2 = es$1.diff__sc_Seq__O(es$1.distinct__O()); | |
var this$3 = $f_sc_IndexedSeqOps__headOption__s_Option(this$2); | |
if (this$3.isEmpty__Z()) { | |
return $m_s_None$(); | |
} else { | |
var arg1 = this$3.get__O(); | |
var x$9 = arg1; | |
if (x$9 === null) { | |
throw new $c_s_MatchError(x$9); | |
} | |
; | |
var q1 = x$9._1__O(); | |
var q2 = x$9._2__O(); | |
var $$x2 = $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_graph; | |
var this$7 = $m_s_Predef$().s_Predef$__f_Set; | |
var array = [q2]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
var this$8 = $$x2.path__sci_Set__O__Lcodes_quine_labs_recheck_common_Context__s_Option(this$7.from__sc_IterableOnce__sci_Set(elems), q1, $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx); | |
if (this$8.isEmpty__Z()) { | |
return $m_s_None$(); | |
} else { | |
var arg1$1 = this$8.get__O(); | |
var x$8 = arg1$1; | |
if (x$8 === null) { | |
throw new $c_s_MatchError(x$8); | |
} | |
; | |
var back = x$8._1__O(); | |
var last = x$8._2__O(); | |
var this$10 = back.map__F1__O(new $c_sjsr_AnonFunction1((x$7$2) => { | |
var x$7 = x$7$2; | |
return x$7._2__O(); | |
})); | |
var $$x3 = this$10.prepended__O__O(a$1); | |
var rassoc$2 = $ct_T2__O__O__(new $c_T2(), q1, a$1); | |
return new $c_s_Some(new $c_T4(q1, $$x3, q1, $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__spots__sci_Seq__T2__sci_Seq($thiz, back.prepended__O__O(rassoc$2), last))); | |
} | |
} | |
} | |
} | |
; | |
var x = $m_s_None$(); | |
if (x === found) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:120"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:120"); | |
} | |
} | |
; | |
var g2 = $m_Lcodes_quine_labs_recheck_data_Graph$().from__sci_IndexedSeq__Lcodes_quine_labs_recheck_data_Graph($m_sci_IndexedSeq$().from__sc_IterableOnce__sci_IndexedSeq(edges).flatMap__F1__O(new $c_sjsr_AnonFunction1((x$12$2) => { | |
var x$12 = x$12$2; | |
if (x$12 !== null) { | |
var a1 = x$12._1__O(); | |
var es$2 = x$12._2__O(); | |
return es$2.flatMap__F1__O(new $c_sjsr_AnonFunction1(((es$3, a1$1) => (x$11$2) => { | |
var x$11 = x$11$2; | |
if (x$11 !== null) { | |
var q11 = x$11._1__O(); | |
var q12 = x$11._2__O(); | |
return es$3.map__F1__O(new $c_sjsr_AnonFunction1(((q11$1, a1$1$1, q12$1) => (x$10$2) => { | |
var x$10 = x$10$2; | |
if (x$10 !== null) { | |
var q21 = x$10._1__O(); | |
var q22 = x$10._2__O(); | |
return new $c_T3($ct_T2__O__O__(new $c_T2(), q11$1, q21), a1$1$1, $ct_T2__O__O__(new $c_T2(), q12$1, q22)); | |
} else { | |
throw new $c_s_MatchError(x$10); | |
} | |
})(q11, a1$1, q12))); | |
} else { | |
throw new $c_s_MatchError(x$11); | |
} | |
})(es$2, a1))); | |
} else { | |
throw new $c_s_MatchError(x$12); | |
} | |
}))); | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:125"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:125"); | |
} | |
} | |
; | |
var this$27 = g2.scc__Lcodes_quine_labs_recheck_common_Context__sci_Seq($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx).view__sc_SeqView(); | |
var f = new $c_sjsr_AnonFunction1(((this$4$1, g2$1) => (sc$2$2) => { | |
var sc$2 = sc$2$2; | |
if (this$4$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$4$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this$4$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this$4$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this$4$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$4$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:127"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:127"); | |
} | |
} | |
; | |
_return$1: { | |
var it$1 = sc$2.iterator__sc_Iterator(); | |
while (it$1.hasNext__Z()) { | |
var a$2 = it$1.next__O(); | |
var x0$2 = a$2; | |
if (x0$2 === null) { | |
throw new $c_s_MatchError(x0$2); | |
} | |
; | |
var q1$1 = x0$2._1__O(); | |
var q2$1 = x0$2._2__O(); | |
if (q1$1 === null ? q2$1 === null : q1$1.equals__O__Z(q2$1)) { | |
var this$13 = new $c_s_Some(a$2); | |
break _return$1; | |
} | |
} | |
; | |
var this$13 = $m_s_None$(); | |
} | |
; | |
if (this$13.isEmpty__Z()) { | |
var eda = $m_s_None$(); | |
} else { | |
var arg1$2 = this$13.get__O(); | |
var p1 = arg1$2; | |
_return$2: { | |
var it$2 = sc$2.iterator__sc_Iterator(); | |
while (it$2.hasNext__Z()) { | |
var a$3 = it$2.next__O(); | |
var x0$3 = a$3; | |
if (x0$3 === null) { | |
throw new $c_s_MatchError(x0$3); | |
} | |
; | |
var q1$2 = x0$3._1__O(); | |
var q2$2 = x0$3._2__O(); | |
if (!(q1$2 === null ? q2$2 === null : q1$2.equals__O__Z(q2$2))) { | |
var this$14 = new $c_s_Some(a$3); | |
break _return$2; | |
} | |
} | |
; | |
var this$14 = $m_s_None$(); | |
} | |
; | |
if (this$14.isEmpty__Z()) { | |
var eda = $m_s_None$(); | |
} else { | |
var arg1$3 = this$14.get__O(); | |
var p2 = arg1$3; | |
var this$18 = $m_s_Predef$().s_Predef$__f_Set; | |
var array$1 = [p1]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
var this$19 = g2$1.path__sci_Set__O__Lcodes_quine_labs_recheck_common_Context__s_Option(this$18.from__sc_IterableOnce__sci_Set(elems$1), p2, this$4$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx); | |
if (this$19.isEmpty__Z()) { | |
var eda = $m_s_None$(); | |
} else { | |
var arg1$4 = this$19.get__O(); | |
var x$16 = arg1$4; | |
if (x$16 === null) { | |
throw new $c_s_MatchError(x$16); | |
} | |
; | |
var path1 = x$16._1__O(); | |
var this$23 = $m_s_Predef$().s_Predef$__f_Set; | |
var array$2 = [p2]; | |
var elems$2 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$2); | |
var this$24 = g2$1.path__sci_Set__O__Lcodes_quine_labs_recheck_common_Context__s_Option(this$23.from__sc_IterableOnce__sci_Set(elems$2), p1, this$4$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx); | |
if (this$24.isEmpty__Z()) { | |
var eda = $m_s_None$(); | |
} else { | |
var arg1$5 = this$24.get__O(); | |
var x$15 = arg1$5; | |
if (x$15 === null) { | |
throw new $c_s_MatchError(x$15); | |
} | |
; | |
var path2 = x$15._1__O(); | |
var $$x4 = p1._1__O(); | |
var this$26 = path1.map__F1__O(new $c_sjsr_AnonFunction1((x$13$2) => { | |
var x$13 = x$13$2; | |
return x$13._2__O(); | |
})); | |
var suffix = path2.map__F1__O(new $c_sjsr_AnonFunction1((x$14$2) => { | |
var x$14 = x$14$2; | |
return x$14._2__O(); | |
})); | |
var eda = new $c_s_Some(new $c_T4($$x4, this$26.concat__sc_IterableOnce__O(suffix), p1._1__O(), $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__spotsG2__sci_Seq__T2__sci_Seq(this$4$1, path1.appendedAll__sc_IterableOnce__O(path2), p1))); | |
} | |
} | |
} | |
} | |
; | |
return eda; | |
})($thiz, g2)); | |
var result = $f_sc_IterableOps__flatMap__F1__O(this$27, f).headOption__s_Option(); | |
return result; | |
} | |
; | |
throw new $c_s_MatchError(found); | |
} | |
function $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkPolynomial__sci_Seq($thiz) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
$thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("automaton: find IDA"); | |
} | |
; | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:145"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:145"); | |
} | |
} | |
; | |
var this$3 = $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_scc.map__F1__O(new $c_sjsr_AnonFunction1(((this$1) => (sc$2) => { | |
var sc = sc$2; | |
return $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkPolynomialComponent__sci_IndexedSeq__T2(this$1, sc); | |
})($thiz))); | |
var f = new $c_sjsr_AnonFunction1((x$17$2) => { | |
var x$17 = x$17$2; | |
return -x$17._1$mcI$sp__I() | 0; | |
}); | |
var ord = $m_s_math_Ordering$Int$(); | |
return $f_sc_SeqOps__sortBy__F1__s_math_Ordering__O(this$3, f, ord).map__F1__O(new $c_sjsr_AnonFunction1(((this$3$1) => (x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (x0$1 !== null) { | |
var p2 = x0$1._1$mcI$sp__I(); | |
if (p2 === 0) { | |
return $m_Lcodes_quine_labs_recheck_automaton_Complexity$Constant$(); | |
} | |
} | |
; | |
if (x0$1 !== null) { | |
var p5 = x0$1._1$mcI$sp__I(); | |
if (p5 === 1) { | |
return $m_Lcodes_quine_labs_recheck_automaton_Complexity$Linear$(); | |
} | |
} | |
; | |
if (x0$1 !== null) { | |
var degree = x0$1._1$mcI$sp__I(); | |
var pumps = x0$1._2__O(); | |
var x1$2 = $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__witness__sci_Seq__T2(this$3$1, pumps); | |
if (x1$2 === null) { | |
throw new $c_s_MatchError(x1$2); | |
} | |
; | |
var w = x1$2._1__O(); | |
var hotspot = x1$2._2__O(); | |
return new $c_Lcodes_quine_labs_recheck_automaton_Complexity$Polynomial(degree, w, hotspot); | |
} | |
; | |
throw new $c_s_MatchError(x0$1); | |
})($thiz))); | |
} | |
function $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkPolynomialComponent__sci_IndexedSeq__T2($thiz, sc) { | |
return $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_checkPolynomialComponentCache.getOrElseUpdate__O__F0__O(sc, new $c_sjsr_AnonFunction0(((this$1, sc$1) => () => { | |
if (this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:161"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:161"); | |
} | |
} | |
; | |
if (this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:163"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:163"); | |
} | |
} | |
; | |
var this$3 = this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccGraph.Lcodes_quine_labs_recheck_data_Graph__f_neighbors.apply__O__O(sc$1).map__F1__O(new $c_sjsr_AnonFunction1(((this$2) => (x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (x0$1 !== null) { | |
var p2 = x0$1._1__O(); | |
var sc$2 = x0$1._2__O(); | |
if (p2 === void 0) { | |
return $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkPolynomialComponent__sci_IndexedSeq__T2(this$2, sc$2); | |
} | |
} | |
; | |
throw new $c_s_MatchError(x0$1); | |
})(this$1))); | |
var f = new $c_sjsr_AnonFunction1((x$19$2) => { | |
var x$19 = x$19$2; | |
return x$19._1$mcI$sp__I(); | |
}); | |
var cmp = $m_s_math_Ordering$Int$(); | |
var this$4 = $f_sc_IterableOnceOps__maxByOption__F1__s_math_Ordering__s_Option(this$3, f, cmp); | |
var x1 = this$4.isEmpty__Z() ? $ct_T2__O__O__(new $c_T2(), 0, ($m_s_package$(), $m_sci_Vector0$())) : this$4.get__O(); | |
if (x1 === null) { | |
throw new $c_s_MatchError(x1); | |
} | |
; | |
var maxDegree = x1._1$mcI$sp__I(); | |
var maxPumps = x1._2__O(); | |
if (maxDegree === 0) { | |
return $ct_T2__O__O__(new $c_T2(), $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__isAtom__sci_Seq__Z(this$1, sc$1) ? 0 : 1, ($m_s_package$(), $m_sci_Vector0$())); | |
} else if ($p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__isAtom__sci_Seq__Z(this$1, sc$1)) { | |
return $ct_T2__O__O__(new $c_T2(), maxDegree, maxPumps); | |
} else { | |
if (this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:174"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:174"); | |
} | |
} | |
; | |
var this$9 = this$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccReachableMap.apply__O__O(sc$1).iterator__sc_Iterator(); | |
var p = new $c_sjsr_AnonFunction1(((this$4$1, sc$4, maxDegree$2) => (target$2) => { | |
var target = target$2; | |
if (!(sc$4 === null ? target === null : sc$4.equals__O__Z(target)) && !$p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__isAtom__sci_Seq__Z(this$4$1, target) && $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkPolynomialComponent__sci_IndexedSeq__T2(this$4$1, target)._1$mcI$sp__I() === maxDegree$2) { | |
var this$7 = this$4$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccLookaheadMap.apply__O__O(sc$4); | |
var that = this$4$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccLookaheadMap.apply__O__O(target); | |
var this$8 = this$7.intersect__sc_Set__sc_SetOps(that); | |
return !this$8.isEmpty__Z(); | |
} else { | |
return false; | |
} | |
})(this$1, sc$1, maxDegree)); | |
var this$11 = new $c_sc_Iterator$$anon$6(this$9, p, false); | |
var f$1 = new $c_sjsr_AnonFunction1(((this$5$1, sc$4$1) => (target$3$2) => { | |
var target$3 = target$3$2; | |
var this$10 = $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkPolynomialComponentBetween__sci_IndexedSeq__sci_IndexedSeq__s_Option(this$5$1, sc$4$1, target$3); | |
if (this$10.isEmpty__Z()) { | |
return $m_s_None$(); | |
} else { | |
var arg1 = this$10.get__O(); | |
var x$21 = arg1; | |
return new $c_s_Some($ct_T2__O__O__(new $c_T2(), target$3, x$21)); | |
} | |
})(this$1, sc$1)); | |
var this$13 = new $c_sc_Iterator$$anon$10(this$11, f$1); | |
var f$2 = new $c_sjsr_AnonFunction1(((this$6$1, maxDegree$2$1) => (x0$2$2) => { | |
var x0$2 = x0$2$2; | |
if (x0$2 !== null) { | |
var target$1 = x0$2._1__O(); | |
var pump = x0$2._2__O(); | |
var this$12 = $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkPolynomialComponent__sci_IndexedSeq__T2(this$6$1, target$1)._2__O(); | |
return $ct_T2__O__O__(new $c_T2(), 1 + maxDegree$2$1 | 0, this$12.prepended__O__O(pump)); | |
} else { | |
throw new $c_s_MatchError(x0$2); | |
} | |
})(this$1, maxDegree)); | |
var this$14 = new $c_sc_Iterator$$anon$9(this$13, f$2); | |
var this$15 = $f_sc_Iterator__nextOption__s_Option(this$14); | |
var result = this$15.isEmpty__Z() ? $ct_T2__O__O__(new $c_T2(), maxDegree, maxPumps) : this$15.get__O(); | |
return result; | |
} | |
})($thiz, sc))); | |
} | |
function $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkPolynomialComponentBetween__sci_IndexedSeq__sci_IndexedSeq__s_Option($thiz, source, target) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:194"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:194"); | |
} | |
} | |
; | |
var sourceEdges = $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccPairEdges.apply__O__O($ct_T2__O__O__(new $c_T2(), source, source)); | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:195"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:195"); | |
} | |
} | |
; | |
var this$1 = $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccReachableMap.apply__O__O(source); | |
var that = $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccReverseReachableMap.apply__O__O(target); | |
var between = this$1.intersect__sc_Set__sc_SetOps(that); | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:196"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:196"); | |
} | |
} | |
; | |
var betweenEdges = between.flatMap__F1__O(new $c_sjsr_AnonFunction1(((this$2, between$1) => (sc1$2) => { | |
var sc1 = sc1$2; | |
return between$1.map__F1__O(new $c_sjsr_AnonFunction1(((this$3, sc1$1) => (sc2$2) => { | |
var sc2 = sc2$2; | |
return this$3.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccPairEdges.apply__O__O($ct_T2__O__O__(new $c_T2(), sc1$1, sc2)); | |
})(this$2, sc1))); | |
})($thiz, between))); | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:197"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:197"); | |
} | |
} | |
; | |
var targetEdges = $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccPairEdges.apply__O__O($ct_T2__O__O__(new $c_T2(), target, target)); | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:199"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:199"); | |
} | |
} | |
; | |
var $$x1 = $m_Lcodes_quine_labs_recheck_data_Graph$(); | |
var this$7 = $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_nfaWLA.Lcodes_quine_labs_recheck_automaton_NFAwLA__f_alphabet.iterator__sc_Iterator(); | |
var f = new $c_sjsr_AnonFunction1(((this$2$1, sourceEdges$1, betweenEdges$1, targetEdges$1) => (a$2) => { | |
var a = a$2; | |
return sourceEdges$1.apply__O__O(a).flatMap__F1__O(new $c_sjsr_AnonFunction1(((this$4, betweenEdges$1$1, a$1, targetEdges$1$1) => (x$25$2) => { | |
var x$25 = x$25$2; | |
if (x$25 !== null) { | |
var q11 = x$25._1__O(); | |
var q12 = x$25._2__O(); | |
return betweenEdges$1$1.flatMap__F1__O(new $c_sjsr_AnonFunction1(((a$2$1) => (x$22$2) => { | |
var x$22 = x$22$2; | |
return x$22.apply__O__O(a$2$1); | |
})(a$1))).flatMap__F1__O(new $c_sjsr_AnonFunction1(((this$2$2, targetEdges$1$2, a$2$2, q11$1, q12$1) => (x$24$2) => { | |
var x$24 = x$24$2; | |
if (x$24 !== null) { | |
var q21 = x$24._1__O(); | |
var q22 = x$24._2__O(); | |
return targetEdges$1$2.apply__O__O(a$2$2).map__F1__O(new $c_sjsr_AnonFunction1(((this$6, q11$2, q21$1, a$2$3, q12$2, q22$1) => (x$23$2) => { | |
var x$23 = x$23$2; | |
if (x$23 !== null) { | |
var q31 = x$23._1__O(); | |
var q32 = x$23._2__O(); | |
if (this$6.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$6.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this$6.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this$6.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this$6.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$6.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:207"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:207"); | |
} | |
} | |
; | |
var edge = new $c_T3(new $c_T3(q11$2, q21$1, q31), a$2$3, new $c_T3(q12$2, q22$1, q32)); | |
return edge; | |
} else { | |
throw new $c_s_MatchError(x$23); | |
} | |
})(this$2$2, q11$1, q21, a$2$2, q12$1, q22))); | |
} else { | |
throw new $c_s_MatchError(x$24); | |
} | |
})(this$4, targetEdges$1$1, a$1, q11, q12))); | |
} else { | |
throw new $c_s_MatchError(x$25); | |
} | |
})(this$2$1, betweenEdges$1, a, targetEdges$1))); | |
})($thiz, sourceEdges, betweenEdges, targetEdges)); | |
var this$8 = new $c_sc_Iterator$$anon$10(this$7, f); | |
var g3 = $$x1.from__sci_IndexedSeq__Lcodes_quine_labs_recheck_data_Graph($m_sci_IndexedSeq$().from__sc_IterableOnce__sci_IndexedSeq(this$8)); | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:212"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:212"); | |
} | |
} | |
; | |
var $$x2 = $m_Lcodes_quine_labs_recheck_data_Graph$(); | |
var this$10 = source.flatMap__F1__O(new $c_sjsr_AnonFunction1(((target$1) => (q1$2) => { | |
var q1 = q1$2; | |
return target$1.map__F1__O(new $c_sjsr_AnonFunction1(((q1$1) => (q2$2) => { | |
var q2 = q2$2; | |
return new $c_T3(new $c_T3(q1$1, q2, q2), $m_s_None$(), new $c_T3(q1$1, q1$1, q2)); | |
})(q1))); | |
})(target))); | |
var suffix = g3.edges__sci_IndexedSeq().map__F1__O(new $c_sjsr_AnonFunction1((x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (x0$1 !== null) { | |
var qqq1 = x0$1.T3__f__1; | |
var a$3 = x0$1.T3__f__2; | |
var qqq2 = x0$1.T3__f__3; | |
return new $c_T3(qqq1, new $c_s_Some(a$3), qqq2); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
})); | |
var g3back = $$x2.from__sci_IndexedSeq__Lcodes_quine_labs_recheck_data_Graph(this$10.concat__sc_IterableOnce__O(suffix)); | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:219"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:219"); | |
} | |
} | |
; | |
var this$20 = g3back.scc__Lcodes_quine_labs_recheck_common_Context__sci_Seq($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx).iterator__sc_Iterator(); | |
var f$1 = new $c_sjsr_AnonFunction1(((this$5$1, g3$1) => (sc$2) => { | |
var sc = sc$2; | |
if (this$5$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$5$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this$5$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this$5$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this$5$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$5$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:222"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:222"); | |
} | |
} | |
; | |
var ida = sc.collect__s_PartialFunction__O(new $c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$$anonfun$1(this$5$1, sc)).flatMap__F1__O(new $c_sjsr_AnonFunction1(((this$11, g3$1$1) => (x0$2$2) => { | |
var x0$2 = x0$2$2; | |
if (x0$2 !== null) { | |
var q1$3 = x0$2._1__O(); | |
var q2$1 = x0$2._2__O(); | |
var this$15 = $m_s_Predef$().s_Predef$__f_Set; | |
var array = [new $c_T3(q1$3, q1$3, q2$1)]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
var this$16 = g3$1$1.path__sci_Set__O__Lcodes_quine_labs_recheck_common_Context__s_Option(this$15.from__sc_IterableOnce__sci_Set(elems), new $c_T3(q1$3, q2$1, q2$1), this$11.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx); | |
if (this$16.isEmpty__Z()) { | |
return $m_s_None$(); | |
} else { | |
var arg1 = this$16.get__O(); | |
var x0$3 = arg1; | |
if (x0$3 !== null) { | |
var path = x0$3._1__O(); | |
var $$x4 = path.map__F1__O(new $c_sjsr_AnonFunction1((x$26$2) => { | |
var x$26 = x$26$2; | |
return x$26._2__O(); | |
})); | |
var spots1 = $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__spots__sci_Seq__T2__sci_Seq(this$11, path.map__F1__O(new $c_sjsr_AnonFunction1((x0$1$2$1) => { | |
var x0$1$1 = x0$1$2$1; | |
if (x0$1$1 !== null) { | |
var p2 = x0$1$1._1__O(); | |
var a$4 = x0$1$1._2__O(); | |
if (p2 !== null) { | |
var q1$4 = p2.T3__f__1; | |
return $ct_T2__O__O__(new $c_T2(), q1$4, a$4); | |
} | |
} | |
; | |
throw new $c_s_MatchError(x0$1$1); | |
})), q1$3); | |
var spots2 = $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__spots__sci_Seq__T2__sci_Seq(this$11, path.map__F1__O(new $c_sjsr_AnonFunction1((x0$2$2$1) => { | |
var x0$2$1 = x0$2$2$1; | |
if (x0$2$1 !== null) { | |
var p2$1 = x0$2$1._1__O(); | |
var a$5 = x0$2$1._2__O(); | |
if (p2$1 !== null) { | |
var q2$3 = p2$1.T3__f__2; | |
return $ct_T2__O__O__(new $c_T2(), q2$3, a$5); | |
} | |
} | |
; | |
throw new $c_s_MatchError(x0$2$1); | |
})), q2$1); | |
var spots3 = $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__spots__sci_Seq__T2__sci_Seq(this$11, path.map__F1__O(new $c_sjsr_AnonFunction1((x0$3$2) => { | |
var x0$3$1 = x0$3$2; | |
if (x0$3$1 !== null) { | |
var p2$2 = x0$3$1._1__O(); | |
var a$6 = x0$3$1._2__O(); | |
if (p2$2 !== null) { | |
var q3 = p2$2.T3__f__3; | |
return $ct_T2__O__O__(new $c_T2(), q3, a$6); | |
} | |
} | |
; | |
throw new $c_s_MatchError(x0$3$1); | |
})), q2$1); | |
var this$19 = spots1.appendedAll__sc_IterableOnce__O(spots2); | |
var $$x3 = new $c_T4(q1$3, $$x4, q2$1, this$19.concat__sc_IterableOnce__O(spots3)); | |
} else { | |
var $$x3; | |
throw new $c_s_MatchError(x0$3); | |
} | |
; | |
return new $c_s_Some($$x3); | |
} | |
} else { | |
throw new $c_s_MatchError(x0$2); | |
} | |
})(this$5$1, g3$1))); | |
return ida; | |
})($thiz, g3)); | |
var this$21 = new $c_sc_Iterator$$anon$10(this$20, f$1); | |
var result = $f_sc_Iterator__nextOption__s_Option(this$21); | |
return result; | |
} | |
function $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__witness__sci_Seq__T2($thiz, pumps) { | |
if ($thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
$thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("automaton: either EDA or IDA is found"); | |
} | |
; | |
$m_s_package$(); | |
var $$x1 = $m_sci_Vector0$(); | |
var this$2 = $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_nfaWLA.Lcodes_quine_labs_recheck_automaton_NFAwLA__f_initSet; | |
var x1$3 = pumps.foldLeft__O__F2__O(new $c_T3($$x1, $m_sci_Set$().from__sc_IterableOnce__sci_Set(this$2), ($m_s_package$(), $m_sci_Vector0$())), new $c_sjsr_AnonFunction2(((this$4) => (x0$1$2, x1$1$2) => { | |
var x0$1 = x0$1$2; | |
var x1$1 = x1$1$2; | |
var x1 = $ct_T2__O__O__(new $c_T2(), x0$1, x1$1); | |
var p2 = x1.T2__f__1; | |
var p3 = x1.T2__f__2; | |
if (p2 !== null) { | |
var pumpPaths = p2.T3__f__1; | |
var last = p2.T3__f__2; | |
var spots = p2.T3__f__3; | |
if (p3 !== null) { | |
var q1 = p3.T4__f__1; | |
var path = p3.T4__f__2; | |
var q2 = p3.T4__f__3; | |
var pos = p3.T4__f__4; | |
var x1$2 = this$4.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_graph.path__sci_Set__O__Lcodes_quine_labs_recheck_common_Context__s_Option(last, q1, this$4.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx).get__O(); | |
if (x1$2 === null) { | |
throw new $c_s_MatchError(x1$2); | |
} | |
; | |
var prefix = x1$2._1__O(); | |
var suffix = pos.map__F1__O(new $c_sjsr_AnonFunction1((x0$2$2) => { | |
var x0$2 = x0$2$2; | |
if (x0$2 !== null) { | |
var s = x0$2.Lcodes_quine_labs_recheck_regexp_Pattern$Location__f_start; | |
var e = x0$2.Lcodes_quine_labs_recheck_regexp_Pattern$Location__f_end; | |
return new $c_Lcodes_quine_labs_recheck_diagnostics_Hotspot$Spot(s, e, $m_Lcodes_quine_labs_recheck_diagnostics_Hotspot$Heat$()); | |
} else { | |
throw new $c_s_MatchError(x0$2); | |
} | |
})); | |
var this$6 = spots.appendedAll__sc_IterableOnce__sci_Vector(suffix); | |
var suffix$1 = $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__spots__sci_Seq__T2__sci_Seq(this$4, prefix, q1).map__F1__O(new $c_sjsr_AnonFunction1((x0$3$2) => { | |
var x0$3 = x0$3$2; | |
if (x0$3 !== null) { | |
var s$1 = x0$3.Lcodes_quine_labs_recheck_regexp_Pattern$Location__f_start; | |
var e$1 = x0$3.Lcodes_quine_labs_recheck_regexp_Pattern$Location__f_end; | |
return new $c_Lcodes_quine_labs_recheck_diagnostics_Hotspot$Spot(s$1, e$1, $m_Lcodes_quine_labs_recheck_diagnostics_Hotspot$Normal$()); | |
} else { | |
throw new $c_s_MatchError(x0$3); | |
} | |
})); | |
var newSpots = this$6.appendedAll__sc_IterableOnce__sci_Vector(suffix$1); | |
var elem = $ct_T2__O__O__(new $c_T2(), prefix.map__F1__O(new $c_sjsr_AnonFunction1((x$27$2) => { | |
var x$27 = x$27$2; | |
return x$27._2__O()._1__O(); | |
})), path.map__F1__O(new $c_sjsr_AnonFunction1((x$28$2) => { | |
var x$28 = x$28$2; | |
return x$28._1__O(); | |
}))); | |
var $$x2 = pumpPaths.appended__O__O(elem); | |
var this$10 = $m_s_Predef$().s_Predef$__f_Set; | |
var array = [q2]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
return new $c_T3($$x2, this$10.from__sc_IterableOnce__sci_Set(elems), newSpots); | |
} | |
} | |
; | |
throw new $c_s_MatchError(x1); | |
})($thiz))); | |
if (x1$3 === null) { | |
throw new $c_s_MatchError(x1$3); | |
} | |
; | |
var pumpPaths$1 = x1$3.T3__f__1; | |
var qs = x1$3.T3__f__2; | |
var spots$1 = x1$3.T3__f__3; | |
var $$x3 = $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_nfaWLA.Lcodes_quine_labs_recheck_automaton_NFAwLA__f_lookAheadDFA.toGraph__Lcodes_quine_labs_recheck_data_Graph(); | |
var this$14 = $m_s_Predef$().s_Predef$__f_Set; | |
var array$1 = [$thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_nfaWLA.Lcodes_quine_labs_recheck_automaton_NFAwLA__f_lookAheadDFA.Lcodes_quine_labs_recheck_automaton_DFA__f_init]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
var suffix$2 = $$x3.path__sci_Set__O__Lcodes_quine_labs_recheck_common_Context__s_Option(this$14.from__sc_IterableOnce__sci_Set(elems$1), qs.head__O()._2__O(), $thiz.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx).get__O()._1__O().map__F1__O(new $c_sjsr_AnonFunction1((x$30$2) => { | |
var x$30 = x$30$2; | |
return x$30._2__O(); | |
})).reverse__O(); | |
return $ct_T2__O__O__(new $c_T2(), new $c_Lcodes_quine_labs_recheck_automaton_Witness(pumpPaths$1, suffix$2), $m_Lcodes_quine_labs_recheck_diagnostics_Hotspot$().apply__sci_Seq__Lcodes_quine_labs_recheck_diagnostics_Hotspot(spots$1)); | |
} | |
function $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__spots__sci_Seq__T2__sci_Seq($thiz, path, last) { | |
return path.foldRight__O__F2__O($ct_T2__O__O__(new $c_T2(), last, ($m_s_package$(), $m_sci_Vector0$())), new $c_sjsr_AnonFunction2(((this$2) => (x0$1$2, x1$1$2) => { | |
var x0$1 = x0$1$2; | |
var x1$1 = x1$1$2; | |
var x1 = $ct_T2__O__O__(new $c_T2(), x0$1, x1$1); | |
var p2 = x1.T2__f__1; | |
var p3 = x1.T2__f__2; | |
if (p2 !== null) { | |
var q1 = p2._1__O(); | |
var a = p2._2__O(); | |
if (p3 !== null) { | |
var q2 = p3._1__O(); | |
var spots = p3._2__O(); | |
var suffix = this$2.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_nfaWLA.Lcodes_quine_labs_recheck_automaton_NFAwLA__f_sourcemap.getOrElse__O__F0__O(new $c_T3(q1, a, q2), new $c_sjsr_AnonFunction0(() => { | |
$m_s_package$(); | |
return $m_sci_Vector0$(); | |
})); | |
return $ct_T2__O__O__(new $c_T2(), q1, spots.appendedAll__sc_IterableOnce__sci_Vector(suffix)); | |
} | |
} | |
; | |
throw new $c_s_MatchError(x1); | |
})($thiz)))._2__O(); | |
} | |
function $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__spotsG2__sci_Seq__T2__sci_Seq($thiz, path, last) { | |
var spots1 = $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__spots__sci_Seq__T2__sci_Seq($thiz, path.map__F1__O(new $c_sjsr_AnonFunction1((x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (x0$1 !== null) { | |
var p2 = x0$1._1__O(); | |
var a = x0$1._2__O(); | |
if (p2 !== null) { | |
var q1 = p2._1__O(); | |
return $ct_T2__O__O__(new $c_T2(), q1, a); | |
} | |
} | |
; | |
throw new $c_s_MatchError(x0$1); | |
})), last._1__O()); | |
var spots2 = $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__spots__sci_Seq__T2__sci_Seq($thiz, path.map__F1__O(new $c_sjsr_AnonFunction1((x0$2$2) => { | |
var x0$2 = x0$2$2; | |
if (x0$2 !== null) { | |
var p2$1 = x0$2._1__O(); | |
var a$1 = x0$2._2__O(); | |
if (p2$1 !== null) { | |
var q2 = p2$1._2__O(); | |
return $ct_T2__O__O__(new $c_T2(), q2, a$1); | |
} | |
} | |
; | |
throw new $c_s_MatchError(x0$2); | |
})), last._2__O()); | |
return spots1.appendedAll__sc_IterableOnce__O(spots2); | |
} | |
function $c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker(nfa, maxNFASize, ctx) { | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_maxNFASize = 0; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx = null; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_nfaWLA = null; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_graph = null; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_scc = null; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccMap = null; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccGraph = null; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccReachableMap = null; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccReverseReachableMap = null; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccPairEdges = null; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccLookaheadMap = null; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_checkPolynomialComponentCache = null; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_maxNFASize = maxNFASize; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx = ctx; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_nfaWLA = nfa.toNFAwLA__I__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_automaton_NFAwLA(maxNFASize, ctx); | |
var $$x1 = this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_nfaWLA.toGraph__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_data_Graph(ctx); | |
var this$1 = this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_nfaWLA.Lcodes_quine_labs_recheck_automaton_NFAwLA__f_initSet; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_graph = $$x1.reachable__sci_Set__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_data_Graph($m_sci_Set$().from__sc_IterableOnce__sci_Set(this$1), ctx); | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_scc = this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_graph.scc__Lcodes_quine_labs_recheck_common_Context__sci_Seq(ctx); | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:42"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:42"); | |
} | |
} | |
; | |
var $$x2 = this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_scc.flatMap__F1__O(new $c_sjsr_AnonFunction1((sc$2) => { | |
var sc = sc$2; | |
return sc.map__F1__O(new $c_sjsr_AnonFunction1(((sc$1) => (q$2) => { | |
var q = q$2; | |
return $ct_T2__O__O__(new $c_T2(), q, sc$1); | |
})(sc))); | |
})); | |
var this$6 = $m_s_$less$colon$less$(); | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccMap = $$x2.toMap__s_$less$colon$less__sci_Map(this$6.s_$less$colon$less$__f_singleton); | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:45"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:45"); | |
} | |
} | |
; | |
var this$7 = this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_graph.edges__sci_IndexedSeq().iterator__sc_Iterator(); | |
var f = new $c_sjsr_AnonFunction1(((this$2$1) => (x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (x0$1 !== null) { | |
var q1 = x0$1.T3__f__1; | |
var q2 = x0$1.T3__f__3; | |
return new $c_T3(this$2$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccMap.apply__O__O(q1), void 0, this$2$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccMap.apply__O__O(q2)); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
})(this)); | |
var this$8 = new $c_sc_Iterator$$anon$9(this$7, f); | |
var p = new $c_sjsr_AnonFunction1((x0$2$2) => { | |
var x0$2 = x0$2$2; | |
if (x0$2 !== null) { | |
var sc1 = x0$2.T3__f__1; | |
var sc2 = x0$2.T3__f__3; | |
return !(sc1 === null ? sc2 === null : sc1.equals__O__Z(sc2)); | |
} else { | |
throw new $c_s_MatchError(x0$2); | |
} | |
}); | |
var edges = new $c_sc_Iterator$$anon$6(this$8, p, false); | |
var edgeSet = new $c_scm_LinkedHashSet(); | |
while (edges.hasNext__Z()) { | |
var arg1 = edges.next__O(); | |
var edge = arg1; | |
if (this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:50"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:50"); | |
} | |
} | |
; | |
edgeSet.addOne__O__scm_LinkedHashSet(edge); | |
} | |
; | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccGraph = $m_Lcodes_quine_labs_recheck_data_Graph$().from__sci_IndexedSeq__Lcodes_quine_labs_recheck_data_Graph($m_sci_IndexedSeq$().from__sc_IterableOnce__sci_IndexedSeq(edgeSet)); | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccReachableMap = this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccGraph.reachableMap__Lcodes_quine_labs_recheck_common_Context__sci_Map(ctx); | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccReverseReachableMap = this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccGraph.reverse__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_data_Graph(ctx).reachableMap__Lcodes_quine_labs_recheck_common_Context__sci_Map(ctx); | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:61"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:61"); | |
} | |
} | |
; | |
var this$12 = this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_graph.edges__sci_IndexedSeq(); | |
var key = new $c_sjsr_AnonFunction1(((this$5$1) => (x0$3$2) => { | |
var x0$3 = x0$3$2; | |
if (x0$3 !== null) { | |
var q1$1 = x0$3.T3__f__1; | |
var q2$1 = x0$3.T3__f__3; | |
return $ct_T2__O__O__(new $c_T2(), this$5$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccMap.apply__O__O(q1$1), this$5$1.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccMap.apply__O__O(q2$1)); | |
} else { | |
throw new $c_s_MatchError(x0$3); | |
} | |
})(this)); | |
var f$1 = new $c_sjsr_AnonFunction1((x0$4$2) => { | |
var x0$4 = x0$4$2; | |
if (x0$4 !== null) { | |
var q1$2 = x0$4.T3__f__1; | |
var a = x0$4.T3__f__2; | |
var q2$2 = x0$4.T3__f__3; | |
var y = $ct_T2__O__O__(new $c_T2(), q1$2, q2$2); | |
return $ct_T2__O__O__(new $c_T2(), a, y); | |
} else { | |
throw new $c_s_MatchError(x0$4); | |
} | |
}); | |
var this$13 = $f_sc_IterableOps__groupMap__F1__F1__sci_Map(this$12, key, f$1); | |
var this$17 = new $c_sc_MapView$Id(this$13); | |
var f$3 = new $c_sjsr_AnonFunction1((x$1$2) => { | |
var x$1 = x$1$2; | |
var key$1 = new $c_sjsr_AnonFunction1((x$2$2) => { | |
var x$2 = x$2$2; | |
return x$2._1__O(); | |
}); | |
var f$2 = new $c_sjsr_AnonFunction1((x$3$2) => { | |
var x$3 = x$3$2; | |
return x$3._2__O(); | |
}); | |
var this$16 = $f_sc_IterableOps__groupMap__F1__F1__sci_Map(x$1, key$1, f$2); | |
$m_s_package$(); | |
var d = $m_sci_Vector0$(); | |
return $f_sci_Map__withDefaultValue__O__sci_Map(this$16, d); | |
}); | |
var this$19 = new $c_sc_MapView$MapValues(this$17, f$3); | |
$m_s_$less$colon$less$(); | |
var this$23 = $m_sci_Map$().from__sc_IterableOnce__sci_Map(this$19); | |
var this$22 = $m_sci_Map$EmptyMap$(); | |
$m_s_package$(); | |
var d$1 = $m_sci_Vector0$(); | |
var d$2 = $f_sci_Map__withDefaultValue__O__sci_Map(this$22, d$1); | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccPairEdges = $f_sci_Map__withDefaultValue__O__sci_Map(this$23, d$2); | |
var $$x3 = this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_scc.map__F1__O(new $c_sjsr_AnonFunction1((sc$3$2) => { | |
var sc$3 = sc$3$2; | |
var this$26 = sc$3.map__F1__O(new $c_sjsr_AnonFunction1((x$4$2) => { | |
var x$4 = x$4$2; | |
return x$4._2__O(); | |
})); | |
var y$1 = $m_sci_Set$().from__sc_IterableOnce__sci_Set(this$26); | |
return $ct_T2__O__O__(new $c_T2(), sc$3, y$1); | |
})); | |
var this$28 = $m_s_$less$colon$less$(); | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_sccLookaheadMap = $$x3.toMap__s_$less$colon$less__sci_Map(this$28.s_$less$colon$less$__f_singleton); | |
this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_checkPolynomialComponentCache = $m_scm_Map$().empty__O(); | |
} | |
$c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker.prototype.constructor = $c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker; | |
function $h_Lcodes_quine_labs_recheck_automaton_AutomatonChecker() { | |
} | |
$h_Lcodes_quine_labs_recheck_automaton_AutomatonChecker.prototype = $c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker.prototype; | |
$c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker.prototype.check__sc_Iterator = function() { | |
if (this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:87"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:87"); | |
} | |
} | |
; | |
if (this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
var $$x1 = this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_logger; | |
var this$1 = this.Lcodes_quine_labs_recheck_automaton_AutomatonChecker__f_scc; | |
var x = "|automaton: start\n | scc size: " + this$1.length__I(); | |
$$x1.apply__T__V($m_sc_StringOps$().stripMargin$extension__T__C__T(x, 124)); | |
} | |
; | |
var this$5 = $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkExponential__sc_Iterator(this); | |
var xs = new $c_sjsr_AnonFunction0(((this$4) => () => $p_Lcodes_quine_labs_recheck_automaton_AutomatonChecker__checkPolynomial__sci_Seq(this$4))(this)); | |
var this$6 = this$5.concat__F0__sc_Iterator(xs); | |
return $f_sc_Iterator__distinct__sc_Iterator(this$6); | |
}; | |
var $d_Lcodes_quine_labs_recheck_automaton_AutomatonChecker = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_automaton_AutomatonChecker: 0 | |
}, false, "codes.quine.labs.recheck.automaton.AutomatonChecker", { | |
Lcodes_quine_labs_recheck_automaton_AutomatonChecker: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker.prototype.$classData = $d_Lcodes_quine_labs_recheck_automaton_AutomatonChecker; | |
function $c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$() { | |
} | |
$c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$.prototype.constructor = $c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$; | |
function $h_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$() { | |
} | |
$h_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$.prototype = $c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$.prototype; | |
$c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$.prototype.check__Lcodes_quine_labs_recheck_automaton_OrderedNFA__I__Lcodes_quine_labs_recheck_common_Context__sc_Iterator = function(nfa, maxNFASize, ctx) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:20"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/AutomatonChecker.scala:20"); | |
} | |
} | |
; | |
return new $c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker(nfa, maxNFASize, ctx).check__sc_Iterator(); | |
}; | |
var $d_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$ = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_automaton_AutomatonChecker$: 0 | |
}, false, "codes.quine.labs.recheck.automaton.AutomatonChecker$", { | |
Lcodes_quine_labs_recheck_automaton_AutomatonChecker$: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$.prototype.$classData = $d_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$; | |
var $n_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$; | |
function $m_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$() { | |
if (!$n_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$) { | |
$n_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$ = new $c_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$(); | |
} | |
; | |
return $n_Lcodes_quine_labs_recheck_automaton_AutomatonChecker$; | |
} | |
function $c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder(pattern, alphabet, ctx) { | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_pattern = null; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_alphabet = null; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_ctx = null; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_needsInputTerminatorDistinction = false; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_counterQ = 0; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_refineCache = null; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_counterLoop = 0; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_tau = null; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_pattern = pattern; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_alphabet = alphabet; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_ctx = ctx; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_needsInputTerminatorDistinction = $m_Lcodes_quine_labs_recheck_regexp_PatternExtensions$PatternOps$().needsInputTerminatorDistinction$extension__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Context__Z(pattern, ctx); | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_counterQ = 0; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_refineCache = $m_scm_Map$().empty__O(); | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_counterLoop = 0; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_tau = new $c_sci_MapBuilderImpl(); | |
} | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder.prototype.constructor = $c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder; | |
function $h_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder() { | |
} | |
$h_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder.prototype = $c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder.prototype; | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder.prototype.nextQ__I = function() { | |
var q = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_counterQ; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_counterQ = 1 + this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_counterQ | 0; | |
return q; | |
}; | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder.prototype.stateSet__sci_Set = function() { | |
var end = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_counterQ; | |
var this$4 = new $c_sci_Range$Exclusive(0, end, 1); | |
return $m_sci_Set$().from__sc_IterableOnce__sci_Set(this$4); | |
}; | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder.prototype.nextLoop__I = function() { | |
var loop = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_counterLoop; | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_counterLoop = 1 + this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_counterLoop | 0; | |
return loop; | |
}; | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder.prototype.emit__T2__V = function(t) { | |
this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_tau.addOne__O__scm_Growable(t); | |
}; | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder.prototype.build__Lcodes_quine_labs_recheck_automaton_EpsNFA = function() { | |
var x1 = this.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2(this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_pattern.Lcodes_quine_labs_recheck_regexp_Pattern__f_node); | |
if (x1 === null) { | |
throw new $c_s_MatchError(x1); | |
} | |
; | |
var i0 = x1._1$mcI$sp__I(); | |
var a0 = x1._2$mcI$sp__I(); | |
var $$x1 = $m_Lcodes_quine_labs_recheck_regexp_PatternExtensions$PatternOps$(); | |
var pattern = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_pattern; | |
if ($$x1.needsSigmaStarAtBegin$extension__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Context__Z(pattern, this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_ctx)) { | |
var loop = this.nextLoop__I(); | |
var i1 = this.nextQ__I(); | |
var i2 = this.nextQ__I(); | |
var i3 = this.nextQ__I(); | |
var i4 = this.nextQ__I(); | |
var this$6 = $m_s_package$().s_package$__f_Vector; | |
var array = [i4, i2]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
var y = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Eps(this$6.from__sc_IterableOnce__sci_Vector(elems)); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i1, y)); | |
var y$1 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$LoopEnter(loop, i3); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i2, y$1)); | |
var this$11 = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_alphabet; | |
var this$12 = this$11.Lcodes_quine_labs_recheck_unicode_ICharSet__f_pairs; | |
var y$2 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Consume($m_sci_Set$().from__sc_IterableOnce__sci_Set(this$12), i1, $m_s_None$()); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i3, y$2)); | |
var y$3 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$LoopExit(loop, i0); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i4, y$3)); | |
var init = i1; | |
} else { | |
var init = i0; | |
} | |
; | |
var $$x2 = $m_Lcodes_quine_labs_recheck_regexp_PatternExtensions$PatternOps$(); | |
var pattern$1 = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_pattern; | |
if ($$x2.needsSigmaStarAtEnd$extension__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Context__Z(pattern$1, this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_ctx)) { | |
var loop$2 = this.nextLoop__I(); | |
var a1 = this.nextQ__I(); | |
var a2 = this.nextQ__I(); | |
var a3 = this.nextQ__I(); | |
var a4 = this.nextQ__I(); | |
var this$22 = $m_s_package$().s_package$__f_Vector; | |
var array$1 = [a3, a1]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
var y$4 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Eps(this$22.from__sc_IterableOnce__sci_Vector(elems$1)); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), a0, y$4)); | |
var y$5 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$LoopEnter(loop$2, a2); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), a1, y$5)); | |
var this$27 = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_alphabet; | |
var this$28 = this$27.Lcodes_quine_labs_recheck_unicode_ICharSet__f_pairs; | |
var y$6 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Consume($m_sci_Set$().from__sc_IterableOnce__sci_Set(this$28), a0, $m_s_None$()); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), a2, y$6)); | |
var y$7 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$LoopExit(loop$2, a4); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), a3, y$7)); | |
var accept = a4; | |
} else { | |
var accept = a0; | |
} | |
; | |
return new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA(this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_alphabet, this.stateSet__sci_Set(), init, accept, this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_tau.result__O()); | |
}; | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder.prototype.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2 = function(node) { | |
if (this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/EpsNFABuilder.scala:114"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/EpsNFABuilder.scala:114"); | |
} | |
} | |
; | |
var rc37 = false; | |
var x10 = null; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction) { | |
var x2 = node; | |
var ns = x2.Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction__f_children; | |
var ss = ns.map__F1__O(new $c_sjsr_AnonFunction1(((this$1) => (node$2$2) => { | |
var node$2 = node$2$2; | |
return this$1.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2(node$2); | |
})(this))); | |
var i = this.nextQ__I(); | |
var $$x1 = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_tau; | |
var y = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Eps(ss.map__F1__O(new $c_sjsr_AnonFunction1((x$4$2) => { | |
var x$4 = x$4$2; | |
return x$4._1$mcI$sp__I(); | |
}))); | |
$$x1.addOne__O__scm_Growable($ct_T2__O__O__(new $c_T2(), i, y)); | |
var a = this.nextQ__I(); | |
ss.foreach__F1__V(new $c_sjsr_AnonFunction1(((this$3$1, a$1) => (x$5$2) => { | |
var x$5 = x$5$2; | |
if (x$5 !== null) { | |
var a0 = x$5._2$mcI$sp__I(); | |
var this$8 = $m_s_package$().s_package$__f_Vector; | |
var array = [a$1]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
var y$1 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Eps(this$8.from__sc_IterableOnce__sci_Vector(elems)); | |
this$3$1.emit__T2__V($ct_T2__O__O__(new $c_T2(), a0, y$1)); | |
} else { | |
throw new $c_s_MatchError(x$5); | |
} | |
})(this, a))); | |
return new $c_T2$mcII$sp(i, a); | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence) { | |
var x3 = node; | |
var ns$2 = x3.Lcodes_quine_labs_recheck_regexp_Pattern$Sequence__f_children; | |
var ss$2 = ns$2.map__F1__O(new $c_sjsr_AnonFunction1(((this$4$1) => (node$3$2) => { | |
var node$3 = node$3$2; | |
return this$4$1.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2(node$3); | |
})(this))); | |
var op = new $c_sjsr_AnonFunction2(((this$5$1) => (x0$1$2, x1$1$2) => { | |
var x0$1 = x0$1$2; | |
var x1$1 = x1$1$2; | |
var x1 = $ct_T2__O__O__(new $c_T2(), x0$1, x1$1); | |
var p2 = x1.T2__f__1; | |
var p3 = x1.T2__f__2; | |
if (p2 !== null) { | |
var i1 = p2._1$mcI$sp__I(); | |
var a1 = p2._2$mcI$sp__I(); | |
if (p3 !== null) { | |
var i2 = p3._1$mcI$sp__I(); | |
var a2 = p3._2$mcI$sp__I(); | |
var this$14 = $m_s_package$().s_package$__f_Vector; | |
var array$1 = [i2]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
var y$2 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Eps(this$14.from__sc_IterableOnce__sci_Vector(elems$1)); | |
this$5$1.emit__T2__V($ct_T2__O__O__(new $c_T2(), a1, y$2)); | |
return new $c_T2$mcII$sp(i1, a2); | |
} | |
} | |
; | |
throw new $c_s_MatchError(x1); | |
})(this)); | |
var this$16 = $f_sc_IterableOnceOps__reduceLeftOption__F2__s_Option(ss$2, op); | |
if (this$16.isEmpty__Z()) { | |
var q = this.nextQ__I(); | |
var $$x2 = new $c_T2$mcII$sp(q, q); | |
} else { | |
var $$x2 = this$16.get__O(); | |
} | |
; | |
return $$x2; | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Capture) { | |
var x4 = node; | |
var n = x4.Lcodes_quine_labs_recheck_regexp_Pattern$Capture__f_child; | |
return this.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2(n); | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$NamedCapture) { | |
var x6 = node; | |
var n$2 = x6.Lcodes_quine_labs_recheck_regexp_Pattern$NamedCapture__f_child; | |
return this.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2(n$2); | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Group) { | |
var x9 = node; | |
var n$3 = x9.Lcodes_quine_labs_recheck_regexp_Pattern$Group__f_child; | |
return this.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2(n$3); | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat) { | |
rc37 = true; | |
x10 = node; | |
var p11 = x10.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_quantifier; | |
var n$4 = x10.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_child; | |
if (p11 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Star) { | |
var x12 = p11; | |
var isLazy = x12.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Star__f_isLazy; | |
var x1$2 = this.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2(n$4); | |
if (x1$2 === null) { | |
throw new $c_s_MatchError(x1$2); | |
} | |
; | |
var i0 = x1$2._1$mcI$sp__I(); | |
var a0$1 = x1$2._2$mcI$sp__I(); | |
var loop = this.nextLoop__I(); | |
var i$2 = this.nextQ__I(); | |
var i2$1 = this.nextQ__I(); | |
var a1$1 = this.nextQ__I(); | |
var a$2 = this.nextQ__I(); | |
if (isLazy) { | |
var this$20 = $m_s_package$().s_package$__f_Vector; | |
var array$2 = [a1$1, i2$1]; | |
var elems$2 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$2); | |
var t = this$20.from__sc_IterableOnce__sci_Vector(elems$2); | |
} else { | |
var this$24 = $m_s_package$().s_package$__f_Vector; | |
var array$3 = [i2$1, a1$1]; | |
var elems$3 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$3); | |
var t = this$24.from__sc_IterableOnce__sci_Vector(elems$3); | |
} | |
; | |
var y$3 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Eps(t); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i$2, y$3)); | |
var y$4 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$LoopEnter(loop, i0); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i2$1, y$4)); | |
var this$33 = $m_s_package$().s_package$__f_Vector; | |
var array$4 = [i$2]; | |
var elems$4 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$4); | |
var y$5 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Eps(this$33.from__sc_IterableOnce__sci_Vector(elems$4)); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), a0$1, y$5)); | |
var y$6 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$LoopExit(loop, a$2); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), a1$1, y$6)); | |
return new $c_T2$mcII$sp(i$2, a$2); | |
} | |
} | |
; | |
if (rc37) { | |
var p14 = x10.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_quantifier; | |
var n$5 = x10.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_child; | |
if (p14 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Plus) { | |
var x15 = p14; | |
var isLazy$2 = x15.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Plus__f_isLazy; | |
var x1$3 = this.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2(n$5); | |
if (x1$3 === null) { | |
throw new $c_s_MatchError(x1$3); | |
} | |
; | |
var i$3 = x1$3._1$mcI$sp__I(); | |
var a0$3 = x1$3._2$mcI$sp__I(); | |
var loop$2 = this.nextLoop__I(); | |
var i1$1 = this.nextQ__I(); | |
var a1$2 = this.nextQ__I(); | |
var a$3 = this.nextQ__I(); | |
if (isLazy$2) { | |
var this$40 = $m_s_package$().s_package$__f_Vector; | |
var array$5 = [a1$2, i1$1]; | |
var elems$5 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$5); | |
var t$2 = this$40.from__sc_IterableOnce__sci_Vector(elems$5); | |
} else { | |
var this$44 = $m_s_package$().s_package$__f_Vector; | |
var array$6 = [i1$1, a1$2]; | |
var elems$6 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$6); | |
var t$2 = this$44.from__sc_IterableOnce__sci_Vector(elems$6); | |
} | |
; | |
var y$7 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Eps(t$2); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), a0$3, y$7)); | |
var y$8 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$LoopEnter(loop$2, i$3); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i1$1, y$8)); | |
var y$9 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$LoopExit(loop$2, a$3); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), a1$2, y$9)); | |
return new $c_T2$mcII$sp(i$3, a$3); | |
} | |
} | |
; | |
if (rc37) { | |
var p17 = x10.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_quantifier; | |
var n$6 = x10.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_child; | |
if (p17 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Question) { | |
var x18 = p17; | |
var isLazy$3 = x18.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Question__f_isLazy; | |
var x1$4 = this.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2(n$6); | |
if (x1$4 === null) { | |
throw new $c_s_MatchError(x1$4); | |
} | |
; | |
var i0$3 = x1$4._1$mcI$sp__I(); | |
var a$4 = x1$4._2$mcI$sp__I(); | |
var i$5 = this.nextQ__I(); | |
if (isLazy$3) { | |
var this$54 = $m_s_package$().s_package$__f_Vector; | |
var array$7 = [a$4, i0$3]; | |
var elems$7 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$7); | |
var t$3 = this$54.from__sc_IterableOnce__sci_Vector(elems$7); | |
} else { | |
var this$58 = $m_s_package$().s_package$__f_Vector; | |
var array$8 = [i0$3, a$4]; | |
var elems$8 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$8); | |
var t$3 = this$58.from__sc_IterableOnce__sci_Vector(elems$8); | |
} | |
; | |
var y$10 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Eps(t$3); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i$5, y$10)); | |
return new $c_T2$mcII$sp(i$5, a$4); | |
} | |
} | |
; | |
if (rc37) { | |
var q$1 = x10.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_quantifier; | |
var n$7 = x10.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_child; | |
var x1$5 = q$1.normalized__Lcodes_quine_labs_recheck_regexp_Pattern$NormalizedQuantifier(); | |
if (x1$5 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Exact) { | |
var x2$2 = x1$5; | |
var m = x2$2.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Exact__f_n; | |
$m_s_package$(); | |
var b = new $c_sci_VectorBuilder(); | |
var i$1 = 0; | |
while (i$1 < m) { | |
b.addOne__O__sci_VectorBuilder(n$7); | |
i$1 = 1 + i$1 | 0; | |
} | |
; | |
return this.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence(b.result__sci_Vector())); | |
} else if (x1$5 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Unbounded) { | |
var x4$2 = x1$5; | |
var min = x4$2.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Unbounded__f_min; | |
var isLazy$4 = x4$2.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Unbounded__f_isLazy; | |
$m_s_package$(); | |
var b$1 = new $c_sci_VectorBuilder(); | |
var i$4 = 0; | |
while (i$4 < min) { | |
b$1.addOne__O__sci_VectorBuilder(n$7); | |
i$4 = 1 + i$4 | 0; | |
} | |
; | |
var this$63 = b$1.result__sci_Vector(); | |
var elem = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Star(isLazy$4), n$7); | |
return this.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence(this$63.appended__O__O(elem))); | |
} else if (x1$5 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Bounded) { | |
var x5 = x1$5; | |
var min$2 = x5.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Bounded__f_min; | |
var max = x5.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Bounded__f_max; | |
var isLazy$5 = x5.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Bounded__f_isLazy; | |
$m_s_package$(); | |
var b$2 = new $c_sci_VectorBuilder(); | |
var i$6 = 0; | |
while (i$6 < min$2) { | |
b$2.addOne__O__sci_VectorBuilder(n$7); | |
i$6 = 1 + i$6 | 0; | |
} | |
; | |
var minN = b$2.result__sci_Vector(); | |
var $$x3 = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Question(isLazy$5); | |
$m_s_package$(); | |
var n$1 = max - min$2 | 0; | |
var b$3 = new $c_sci_VectorBuilder(); | |
var i$7 = 0; | |
while (i$7 < n$1) { | |
b$3.addOne__O__sci_VectorBuilder(n$7); | |
i$7 = 1 + i$7 | 0; | |
} | |
; | |
var this$66 = b$3.result__sci_Vector(); | |
var it = this$66.iterator__sc_Iterator(); | |
if (!it.hasNext__Z()) { | |
throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), "empty.reduceRight"); | |
} | |
; | |
var this$67 = $ct_sc_IndexedSeqView$Reverse__sc_IndexedSeqOps__(new $c_sc_IndexedSeqView$Reverse(), this$66); | |
var it$1 = $ct_sc_IndexedSeqView$IndexedSeqViewIterator__sc_IndexedSeqView__(new $c_sc_IndexedSeqView$IndexedSeqViewIterator(), this$67); | |
if (it$1.sc_IndexedSeqView$IndexedSeqViewIterator__f_scala$collection$IndexedSeqView$IndexedSeqViewIterator$$remainder <= 0) { | |
throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), "empty.reduceLeft"); | |
} | |
; | |
var first = true; | |
var acc = null; | |
while (it$1.sc_IndexedSeqView$IndexedSeqViewIterator__f_scala$collection$IndexedSeqView$IndexedSeqViewIterator$$remainder > 0) { | |
var x = it$1.next__O(); | |
if (first) { | |
acc = x; | |
first = false; | |
} else { | |
var arg1 = acc; | |
var l = x; | |
var r = arg1; | |
var this$71 = $m_s_package$().s_package$__f_Vector; | |
var array$9 = [l, new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Question(isLazy$5), r)]; | |
var elems$9 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$9); | |
acc = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence(this$71.from__sc_IterableOnce__sci_Vector(elems$9)); | |
} | |
} | |
; | |
var maxN = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat($$x3, acc); | |
return this.buildNode__Lcodes_quine_labs_recheck_regexp_Pattern$Node__T2(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence(minN.appended__O__O(maxN))); | |
} else { | |
throw new $c_s_MatchError(x1$5); | |
} | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$WordBoundary) { | |
var x20 = node; | |
var invert = x20.Lcodes_quine_labs_recheck_regexp_Pattern$WordBoundary__f_invert; | |
var i$6$1 = this.nextQ__I(); | |
var a$6 = this.nextQ__I(); | |
var y$11 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Assert(invert ? $m_Lcodes_quine_labs_recheck_automaton_EpsNFA$AssertKind$WordBoundaryNot$() : $m_Lcodes_quine_labs_recheck_automaton_EpsNFA$AssertKind$WordBoundary$(), a$6); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i$6$1, y$11)); | |
return new $c_T2$mcII$sp(i$6$1, a$6); | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LineBegin) { | |
var i$7$1 = this.nextQ__I(); | |
if (this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_needsInputTerminatorDistinction) { | |
var a$7 = this.nextQ__I(); | |
var y$12 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Assert($m_Lcodes_quine_labs_recheck_automaton_EpsNFA$AssertKind$LineBegin$(), a$7); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i$7$1, y$12)); | |
return new $c_T2$mcII$sp(i$7$1, a$7); | |
} else { | |
return new $c_T2$mcII$sp(i$7$1, i$7$1); | |
} | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LineEnd) { | |
var i$8 = this.nextQ__I(); | |
if (this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_needsInputTerminatorDistinction) { | |
var a$8 = this.nextQ__I(); | |
var y$13 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Assert($m_Lcodes_quine_labs_recheck_automaton_EpsNFA$AssertKind$LineEnd$(), a$8); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i$8, y$13)); | |
return new $c_T2$mcII$sp(i$8, a$8); | |
} else { | |
return new $c_T2$mcII$sp(i$8, i$8); | |
} | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LookAhead) { | |
throw new $c_Lcodes_quine_labs_recheck_common_UnsupportedException("look-ahead assertion"); | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LookBehind) { | |
throw new $c_Lcodes_quine_labs_recheck_common_UnsupportedException("look-behind assertion"); | |
} | |
; | |
if ($is_Lcodes_quine_labs_recheck_regexp_Pattern$AtomNode(node)) { | |
var $$x4 = $m_Lcodes_quine_labs_recheck_regexp_PatternExtensions$AtomNodeOps$(); | |
var atom = node; | |
var ch0 = $$x4.toIChar$extension__Lcodes_quine_labs_recheck_regexp_Pattern$AtomNode__Z__Lcodes_quine_labs_recheck_unicode_IChar(atom, this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_pattern.Lcodes_quine_labs_recheck_regexp_Pattern__f_flagSet.Lcodes_quine_labs_recheck_regexp_Pattern$FlagSet__f_unicode); | |
var ch = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_pattern.Lcodes_quine_labs_recheck_regexp_Pattern__f_flagSet.Lcodes_quine_labs_recheck_regexp_Pattern$FlagSet__f_ignoreCase ? $m_Lcodes_quine_labs_recheck_unicode_IChar$().canonicalize__Lcodes_quine_labs_recheck_unicode_IChar__Z__Lcodes_quine_labs_recheck_unicode_IChar(ch0, this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_pattern.Lcodes_quine_labs_recheck_regexp_Pattern__f_flagSet.Lcodes_quine_labs_recheck_regexp_Pattern$FlagSet__f_unicode) : ch0; | |
matchEnd5$1: { | |
var chs; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$CharacterClass) { | |
var x2$3 = node; | |
var invert$2 = x2$3.Lcodes_quine_labs_recheck_regexp_Pattern$CharacterClass__f_invert; | |
if (invert$2) { | |
var chs0 = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_refineCache.getOrElseUpdate__O__F0__O(ch, new $c_sjsr_AnonFunction0(((this$12$1, ch$1) => () => this$12$1.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_alphabet.refine__Lcodes_quine_labs_recheck_unicode_IChar__sci_Set(ch$1))(this, ch))); | |
var this$79 = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_alphabet; | |
var this$80 = this$79.Lcodes_quine_labs_recheck_unicode_ICharSet__f_pairs; | |
var chs = $m_sci_Set$().from__sc_IterableOnce__sci_Set(this$80).diff__sc_Set__sci_SetOps(chs0); | |
break matchEnd5$1; | |
} | |
} | |
; | |
var chs = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_refineCache.getOrElseUpdate__O__F0__O(ch, new $c_sjsr_AnonFunction0(((this$13$1, ch$2) => () => this$13$1.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_alphabet.refine__Lcodes_quine_labs_recheck_unicode_IChar__sci_Set(ch$2))(this, ch))); | |
} | |
; | |
var i$9 = this.nextQ__I(); | |
var a$9 = this.nextQ__I(); | |
var y$14 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Consume(chs, a$9, node.Lcodes_quine_labs_recheck_regexp_Pattern$Node__f_codes$quine$labs$recheck$regexp$Pattern$HasLocation$$_loc); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i$9, y$14)); | |
return new $c_T2$mcII$sp(i$9, a$9); | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Dot) { | |
var i$10 = this.nextQ__I(); | |
var a$10 = this.nextQ__I(); | |
if (this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_pattern.Lcodes_quine_labs_recheck_regexp_Pattern__f_flagSet.Lcodes_quine_labs_recheck_regexp_Pattern$FlagSet__f_dotAll) { | |
var this$84 = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_alphabet; | |
var this$85 = this$84.Lcodes_quine_labs_recheck_unicode_ICharSet__f_pairs; | |
var $$x5 = $m_sci_Set$().from__sc_IterableOnce__sci_Set(this$85); | |
} else { | |
var this$86 = this.Lcodes_quine_labs_recheck_automaton_EpsNFABuilder__f_alphabet; | |
var this$87 = this$86.Lcodes_quine_labs_recheck_unicode_ICharSet__f_pairs; | |
var $$x5 = $m_sci_Set$().from__sc_IterableOnce__sci_Set(this$87).diff__sc_Set__sci_SetOps(this$86.refine__Lcodes_quine_labs_recheck_unicode_IChar__sci_Set($m_Lcodes_quine_labs_recheck_unicode_IChar$().LineTerminator__Lcodes_quine_labs_recheck_unicode_IChar())); | |
} | |
; | |
var y$15 = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFA$Consume($$x5, a$10, node.Lcodes_quine_labs_recheck_regexp_Pattern$Node__f_codes$quine$labs$recheck$regexp$Pattern$HasLocation$$_loc); | |
this.emit__T2__V($ct_T2__O__O__(new $c_T2(), i$10, y$15)); | |
return new $c_T2$mcII$sp(i$10, a$10); | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$BackReference) { | |
throw new $c_Lcodes_quine_labs_recheck_common_UnsupportedException("back-reference"); | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$NamedBackReference) { | |
throw new $c_Lcodes_quine_labs_recheck_common_UnsupportedException("named back-reference"); | |
} | |
; | |
throw new $c_s_MatchError(node); | |
}; | |
var $d_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_automaton_EpsNFABuilder: 0 | |
}, false, "codes.quine.labs.recheck.automaton.EpsNFABuilder", { | |
Lcodes_quine_labs_recheck_automaton_EpsNFABuilder: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder.prototype.$classData = $d_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder; | |
function $c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$() { | |
} | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$.prototype.constructor = $c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$; | |
function $h_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$() { | |
} | |
$h_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$.prototype = $c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$.prototype; | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$.prototype.build__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Context__s_util_Try = function(pattern, ctx) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/EpsNFABuilder.scala:22"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/automaton/EpsNFABuilder.scala:22"); | |
} | |
} | |
; | |
try { | |
var $$x1 = new $c_s_util_Success(void 0); | |
} catch (e) { | |
var e$2 = $m_sjsr_package$().wrapJavaScriptException__O__jl_Throwable(e); | |
if (e$2 !== null) { | |
matchEnd8: { | |
var $$x1; | |
if (e$2 !== null) { | |
var o11 = $m_s_util_control_NonFatal$().unapply__jl_Throwable__s_Option(e$2); | |
if (!o11.isEmpty__Z()) { | |
var e$3 = o11.get__O(); | |
var $$x1 = new $c_s_util_Failure(e$3); | |
break matchEnd8; | |
} | |
} | |
; | |
throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(e$2); | |
} | |
} else { | |
var $$x1; | |
throw e; | |
} | |
} | |
; | |
return $$x1.flatMap__F1__s_util_Try(new $c_sjsr_AnonFunction1(((pattern$1, ctx$1) => (x$1$2) => { | |
var alphabet = $m_Lcodes_quine_labs_recheck_regexp_PatternExtensions$PatternOps$().alphabet$extension__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_unicode_ICharSet(pattern$1, ctx$1); | |
var builder = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder(pattern$1, alphabet, ctx$1); | |
try { | |
var $$x2 = new $c_s_util_Success(builder.build__Lcodes_quine_labs_recheck_automaton_EpsNFA()); | |
} catch (e$1) { | |
var e$2$1 = $m_sjsr_package$().wrapJavaScriptException__O__jl_Throwable(e$1); | |
if (e$2$1 !== null) { | |
matchEnd8$1: { | |
var $$x2; | |
if (e$2$1 !== null) { | |
var o11$1 = $m_s_util_control_NonFatal$().unapply__jl_Throwable__s_Option(e$2$1); | |
if (!o11$1.isEmpty__Z()) { | |
var e$3$1 = o11$1.get__O(); | |
var $$x2 = new $c_s_util_Failure(e$3$1); | |
break matchEnd8$1; | |
} | |
} | |
; | |
throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(e$2$1); | |
} | |
} else { | |
var $$x2; | |
throw e$1; | |
} | |
} | |
; | |
return $$x2.map__F1__s_util_Try(new $c_sjsr_AnonFunction1(((ctx$1$1) => (epsNFA$2) => { | |
var epsNFA = epsNFA$2; | |
if (ctx$1$1.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
var $$x4 = ctx$1$1.Lcodes_quine_labs_recheck_common_Context__f_logger; | |
var $$x3 = epsNFA.Lcodes_quine_labs_recheck_automaton_EpsNFA__f_stateSet.size__I(); | |
var this$5 = epsNFA.Lcodes_quine_labs_recheck_automaton_EpsNFA__f_alphabet.Lcodes_quine_labs_recheck_unicode_ICharSet__f_pairs; | |
var x = "|automaton: EpsNFA construction\n | state size: " + $$x3 + "\n | alphabet size: " + this$5.length__I(); | |
$$x4.apply__T__V($m_sc_StringOps$().stripMargin$extension__T__C__T(x, 124)); | |
} | |
; | |
return epsNFA; | |
})(ctx$1))); | |
})(pattern, ctx))); | |
}; | |
var $d_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$ = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$: 0 | |
}, false, "codes.quine.labs.recheck.automaton.EpsNFABuilder$", { | |
Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$.prototype.$classData = $d_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$; | |
var $n_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$; | |
function $m_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$() { | |
if (!$n_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$) { | |
$n_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$ = new $c_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$(); | |
} | |
; | |
return $n_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$; | |
} | |
function $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either($thiz, key, fallback, evidence$1, c$1) { | |
var x1 = c$1.get__T__Lio_circe_Decoder__s_util_Either(key, evidence$1); | |
if (x1 instanceof $c_s_util_Left) { | |
var x2 = x1; | |
var failure = x2.s_util_Left__f_value; | |
var x = failure.Lio_circe_DecodingFailure__f_reason; | |
var x$2 = $m_Lio_circe_DecodingFailure$Reason$MissingField$(); | |
if (x !== null && x.equals__O__Z(x$2)) { | |
$m_s_package$(); | |
return new $c_s_util_Right(fallback); | |
} | |
} | |
; | |
return x1; | |
} | |
function $c_Lcodes_quine_labs_recheck_codec_package$() { | |
} | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.constructor = $c_Lcodes_quine_labs_recheck_codec_package$; | |
function $h_Lcodes_quine_labs_recheck_codec_package$() { | |
} | |
$h_Lcodes_quine_labs_recheck_codec_package$.prototype = $c_Lcodes_quine_labs_recheck_codec_package$.prototype; | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.decodeChecker__Lio_circe_Decoder = function() { | |
$m_Lio_circe_Decoder$(); | |
var instance = $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeString; | |
var f = new $c_sjsr_AnonFunction1((x0$1$2) => { | |
var x0$1 = x0$1$2; | |
switch (x0$1) { | |
case "auto": { | |
$m_s_package$(); | |
var value = $m_Lcodes_quine_labs_recheck_common_Checker$Auto$(); | |
return new $c_s_util_Right(value); | |
break; | |
} | |
case "automaton": { | |
$m_s_package$(); | |
var value$1 = $m_Lcodes_quine_labs_recheck_common_Checker$Automaton$(); | |
return new $c_s_util_Right(value$1); | |
break; | |
} | |
case "fuzz": { | |
$m_s_package$(); | |
var value$2 = $m_Lcodes_quine_labs_recheck_common_Checker$Fuzz$(); | |
return new $c_s_util_Right(value$2); | |
break; | |
} | |
default: { | |
$m_s_package$(); | |
var value$3 = "Unknown checker: " + x0$1; | |
return new $c_s_util_Left(value$3); | |
} | |
} | |
}); | |
return new $c_Lio_circe_Decoder$$anon$13(instance, f); | |
}; | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.decodeAccelerationMode__Lio_circe_Decoder = function() { | |
$m_Lio_circe_Decoder$(); | |
var instance = $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeString; | |
var f = new $c_sjsr_AnonFunction1((x0$1$2) => { | |
var x0$1 = x0$1$2; | |
switch (x0$1) { | |
case "auto": { | |
$m_s_package$(); | |
var value = $m_Lcodes_quine_labs_recheck_common_AccelerationMode$Auto$(); | |
return new $c_s_util_Right(value); | |
break; | |
} | |
case "on": { | |
$m_s_package$(); | |
var value$1 = $m_Lcodes_quine_labs_recheck_common_AccelerationMode$On$(); | |
return new $c_s_util_Right(value$1); | |
break; | |
} | |
case "off": { | |
$m_s_package$(); | |
var value$2 = $m_Lcodes_quine_labs_recheck_common_AccelerationMode$Off$(); | |
return new $c_s_util_Right(value$2); | |
break; | |
} | |
default: { | |
$m_s_package$(); | |
var value$3 = "Unknown acceleration mode: " + x0$1; | |
return new $c_s_util_Left(value$3); | |
} | |
} | |
}); | |
return new $c_Lio_circe_Decoder$$anon$13(instance, f); | |
}; | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.decodeSeeder__Lio_circe_Decoder = function() { | |
$m_Lio_circe_Decoder$(); | |
var instance = $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeString; | |
var f = new $c_sjsr_AnonFunction1((x0$1$2) => { | |
var x0$1 = x0$1$2; | |
switch (x0$1) { | |
case "static": { | |
$m_s_package$(); | |
var value = $m_Lcodes_quine_labs_recheck_common_Seeder$Static$(); | |
return new $c_s_util_Right(value); | |
break; | |
} | |
case "dynamic": { | |
$m_s_package$(); | |
var value$1 = $m_Lcodes_quine_labs_recheck_common_Seeder$Dynamic$(); | |
return new $c_s_util_Right(value$1); | |
break; | |
} | |
default: { | |
$m_s_package$(); | |
var value$2 = "Unknown seeder: " + x0$1; | |
return new $c_s_util_Left(value$2); | |
} | |
} | |
}); | |
return new $c_Lio_circe_Decoder$$anon$13(instance, f); | |
}; | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.codes$quine$labs$recheck$codec$package$$$anonfun$encodeDiagnostics$1__Lcodes_quine_labs_recheck_diagnostics_Diagnostics__Lio_circe_Json = function(x0$1) { | |
if (x0$1 instanceof $c_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Safe) { | |
var x2 = x0$1; | |
var source = x2.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Safe__f_source; | |
var flags = x2.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Safe__f_flags; | |
var complexity = x2.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Safe__f_complexity; | |
var checker = x2.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Safe__f_checker; | |
var this$17 = $m_Lio_circe_Json$(); | |
var $$x4 = $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("source", source, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString); | |
var $$x3 = $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("flags", flags, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString); | |
var $$x2 = $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("status", "safe", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString); | |
var keyEncoder = $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString; | |
var $$x1 = $ct_T2__O__O__(new $c_T2(), keyEncoder.apply__O__T("checker"), $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$encodeChecker$1__Lcodes_quine_labs_recheck_common_Checker__Lio_circe_Json(checker)); | |
var keyEncoder$1 = $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString; | |
var array = [$$x4, $$x3, $$x2, $$x1, $ct_T2__O__O__(new $c_T2(), keyEncoder$1.apply__O__T("complexity"), $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$encodeAttackComplexity$1__Lcodes_quine_labs_recheck_diagnostics_AttackComplexity__Lio_circe_Json(complexity))]; | |
var fields = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
return this$17.fromFields__sc_Iterable__Lio_circe_Json(fields); | |
} else if (x0$1 instanceof $c_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Vulnerable) { | |
var x3 = x0$1; | |
var source$2 = x3.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Vulnerable__f_source; | |
var flags$2 = x3.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Vulnerable__f_flags; | |
var complexity$2 = x3.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Vulnerable__f_complexity; | |
var attack = x3.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Vulnerable__f_attack; | |
var hotspot = x3.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Vulnerable__f_hotspot; | |
var checker$2 = x3.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Vulnerable__f_checker; | |
var this$44 = $m_Lio_circe_Json$(); | |
var $$x10 = $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("source", source$2, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString); | |
var $$x9 = $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("flags", flags$2, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString); | |
var $$x8 = $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("status", "vulnerable", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString); | |
var keyEncoder$2 = $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString; | |
var $$x7 = $ct_T2__O__O__(new $c_T2(), keyEncoder$2.apply__O__T("checker"), $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$encodeChecker$1__Lcodes_quine_labs_recheck_common_Checker__Lio_circe_Json(checker$2)); | |
var keyEncoder$3 = $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString; | |
var $$x6 = $ct_T2__O__O__(new $c_T2(), keyEncoder$3.apply__O__T("complexity"), $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$encodeAttackComplexity$1__Lcodes_quine_labs_recheck_diagnostics_AttackComplexity__Lio_circe_Json(complexity$2)); | |
var keyEncoder$4 = $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString; | |
var $$x5 = $ct_T2__O__O__(new $c_T2(), keyEncoder$4.apply__O__T("attack"), $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$encodeAttackPattern$1__Lcodes_quine_labs_recheck_diagnostics_AttackPattern__Lio_circe_Json(attack)); | |
var keyEncoder$5 = $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString; | |
var array$1 = [$$x10, $$x9, $$x8, $$x7, $$x6, $$x5, $ct_T2__O__O__(new $c_T2(), keyEncoder$5.apply__O__T("hotspot"), $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$encodeHotspot$1__Lcodes_quine_labs_recheck_diagnostics_Hotspot__Lio_circe_Json(hotspot))]; | |
var fields$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
return this$44.fromFields__sc_Iterable__Lio_circe_Json(fields$1); | |
} else if (x0$1 instanceof $c_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Unknown) { | |
var x4 = x0$1; | |
var source$3 = x4.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Unknown__f_source; | |
var flags$3 = x4.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Unknown__f_flags; | |
var error = x4.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Unknown__f_error; | |
var checker$3 = x4.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$Unknown__f_checker; | |
var this$59 = $m_Lio_circe_Json$(); | |
var $$x15 = $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("source", source$3, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString); | |
var $$x14 = $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("flags", flags$3, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString); | |
var $$x13 = $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("status", "unknown", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString); | |
var $$x12 = $m_Lio_circe_syntax_package$KeyOps$(); | |
$m_Lio_circe_Encoder$(); | |
var e = new $c_Lcodes_quine_labs_recheck_codec_package$$anonfun$encodeChecker$2(); | |
var $$x11 = $$x12.$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("checker", checker$3, new $c_Lio_circe_Encoder$$anon$22(e), $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString); | |
var keyEncoder$6 = $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString; | |
var array$2 = [$$x15, $$x14, $$x13, $$x11, $ct_T2__O__O__(new $c_T2(), keyEncoder$6.apply__O__T("error"), $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$encodeErrorKind$1__Lcodes_quine_labs_recheck_diagnostics_Diagnostics$ErrorKind__Lio_circe_Json(error))]; | |
var fields$2 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$2); | |
return this$59.fromFields__sc_Iterable__Lio_circe_Json(fields$2); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.codes$quine$labs$recheck$codec$package$$$anonfun$encodeChecker$1__Lcodes_quine_labs_recheck_common_Checker__Lio_circe_Json = function(x0$1) { | |
var x = $m_Lcodes_quine_labs_recheck_common_Checker$Auto$(); | |
if (x === x0$1) { | |
var encoder = $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString; | |
return encoder.apply__O__Lio_circe_Json("auto"); | |
} else { | |
var x$3 = $m_Lcodes_quine_labs_recheck_common_Checker$Automaton$(); | |
if (x$3 === x0$1) { | |
var encoder$1 = $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString; | |
return encoder$1.apply__O__Lio_circe_Json("automaton"); | |
} else { | |
var x$5 = $m_Lcodes_quine_labs_recheck_common_Checker$Fuzz$(); | |
if (x$5 === x0$1) { | |
var encoder$2 = $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString; | |
return encoder$2.apply__O__Lio_circe_Json("fuzz"); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
} | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.codes$quine$labs$recheck$codec$package$$$anonfun$encodeAttackComplexity$1__Lcodes_quine_labs_recheck_diagnostics_AttackComplexity__Lio_circe_Json = function(x0$1) { | |
var x = $m_Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Constant$(); | |
if (x === x0$1) { | |
var this$7 = $m_Lio_circe_Json$(); | |
var array = [$m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("type", "constant", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("summary", x0$1.toString__T(), $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("isFuzz", false, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeBoolean, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
return this$7.fromFields__sc_Iterable__Lio_circe_Json(fields); | |
} else { | |
var x$3 = $m_Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Linear$(); | |
if (x$3 === x0$1) { | |
var this$14 = $m_Lio_circe_Json$(); | |
var array$1 = [$m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("type", "linear", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("summary", x0$1.toString__T(), $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("isFuzz", false, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeBoolean, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
return this$14.fromFields__sc_Iterable__Lio_circe_Json(fields$1); | |
} else if (x0$1 instanceof $c_Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Safe) { | |
var x4 = x0$1; | |
var this$21 = $m_Lio_circe_Json$(); | |
var array$2 = [$m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("type", "safe", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("summary", x4.toString__T(), $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("isFuzz", x4.isFuzz__Z(), $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeBoolean, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields$2 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$2); | |
return this$21.fromFields__sc_Iterable__Lio_circe_Json(fields$2); | |
} else if (x0$1 instanceof $c_Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Polynomial) { | |
var x5 = x0$1; | |
var this$29 = $m_Lio_circe_Json$(); | |
var array$3 = [$m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("type", "polynomial", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("degree", x5.Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Polynomial__f_degree, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeInt, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("summary", x5.toString__T(), $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("isFuzz", x5.Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Polynomial__f_isFuzz, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeBoolean, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields$3 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$3); | |
return this$29.fromFields__sc_Iterable__Lio_circe_Json(fields$3); | |
} else if (x0$1 instanceof $c_Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Exponential) { | |
var x6 = x0$1; | |
var this$36 = $m_Lio_circe_Json$(); | |
var array$4 = [$m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("type", "exponential", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("summary", x6.toString__T(), $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("isFuzz", x6.Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Exponential__f_isFuzz, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeBoolean, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields$4 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$4); | |
return this$36.fromFields__sc_Iterable__Lio_circe_Json(fields$4); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.codes$quine$labs$recheck$codec$package$$$anonfun$encodeAttackPattern$1__Lcodes_quine_labs_recheck_diagnostics_AttackPattern__Lio_circe_Json = function(p) { | |
var this$34 = $m_Lio_circe_Json$(); | |
var $$x9 = $m_Lio_circe_syntax_package$KeyOps$(); | |
$m_Lio_circe_Json$(); | |
var values = p.Lcodes_quine_labs_recheck_diagnostics_AttackPattern__f_pumps.map__F1__O(new $c_sjsr_AnonFunction1((x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (x0$1 !== null) { | |
var p$1 = x0$1.T3__f__1.Lcodes_quine_labs_recheck_unicode_UString__f_asString; | |
var s = x0$1.T3__f__2.Lcodes_quine_labs_recheck_unicode_UString__f_asString; | |
var n = x0$1.T3__f__3 | 0; | |
var this$17 = $m_Lio_circe_Json$(); | |
var a = new $c_Lcodes_quine_labs_recheck_unicode_UString(p$1); | |
var keyEncoder = $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString; | |
var $$x8 = keyEncoder.apply__O__T("prefix"); | |
var a$1 = a.Lcodes_quine_labs_recheck_unicode_UString__f_asString; | |
var $$x7 = $ct_T2__O__O__(new $c_T2(), $$x8, $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$encodeUString$1__T__Lio_circe_Json(a$1)); | |
var a$2 = new $c_Lcodes_quine_labs_recheck_unicode_UString(s); | |
var keyEncoder$1 = $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString; | |
var $$x6 = keyEncoder$1.apply__O__T("pump"); | |
var a$3 = a$2.Lcodes_quine_labs_recheck_unicode_UString__f_asString; | |
var array = [$$x7, $ct_T2__O__O__(new $c_T2(), $$x6, $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$encodeUString$1__T__Lio_circe_Json(a$3)), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("bias", n, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeInt, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
return this$17.fromFields__sc_Iterable__Lio_circe_Json(fields); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
})); | |
var $$x5 = $$x9.$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("pumps", new $c_Lio_circe_Json$JArray(values.toVector__sci_Vector()), $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeJson, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString); | |
var a$4 = new $c_Lcodes_quine_labs_recheck_unicode_UString(p.Lcodes_quine_labs_recheck_diagnostics_AttackPattern__f_suffix); | |
var keyEncoder$2 = $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString; | |
var $$x4 = keyEncoder$2.apply__O__T("suffix"); | |
var a$5 = a$4.Lcodes_quine_labs_recheck_unicode_UString__f_asString; | |
var $$x3 = $ct_T2__O__O__(new $c_T2(), $$x4, $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$encodeUString$1__T__Lio_circe_Json(a$5)); | |
var $$x2 = $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("base", p.Lcodes_quine_labs_recheck_diagnostics_AttackPattern__f_n, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeInt, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString); | |
var a$6 = new $c_Lcodes_quine_labs_recheck_unicode_UString(p.asUString__T()); | |
var keyEncoder$3 = $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString; | |
var $$x1 = keyEncoder$3.apply__O__T("string"); | |
var a$7 = a$6.Lcodes_quine_labs_recheck_unicode_UString__f_asString; | |
var array$1 = [$$x5, $$x3, $$x2, $ct_T2__O__O__(new $c_T2(), $$x1, $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$encodeUString$1__T__Lio_circe_Json(a$7)), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("pattern", p.toString__Lcodes_quine_labs_recheck_diagnostics_AttackPattern$Style__T($m_Lcodes_quine_labs_recheck_diagnostics_AttackPattern$JavaScript$()), $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
return this$34.fromFields__sc_Iterable__Lio_circe_Json(fields$1); | |
}; | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.codes$quine$labs$recheck$codec$package$$$anonfun$encodeHotspot$1__Lcodes_quine_labs_recheck_diagnostics_Hotspot__Lio_circe_Json = function(h) { | |
$m_Lio_circe_Json$(); | |
var values = h.Lcodes_quine_labs_recheck_diagnostics_Hotspot__f_spots.map__F1__O(new $c_sjsr_AnonFunction1((x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (x0$1 !== null) { | |
var s = x0$1.Lcodes_quine_labs_recheck_diagnostics_Hotspot$Spot__f_start; | |
var e = x0$1.Lcodes_quine_labs_recheck_diagnostics_Hotspot$Spot__f_end; | |
var t = x0$1.Lcodes_quine_labs_recheck_diagnostics_Hotspot$Spot__f_temperature; | |
var this$8 = $m_Lio_circe_Json$(); | |
var array = [$m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("start", s, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeInt, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("end", e, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeInt, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("temperature", t.toString__T(), $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
return this$8.fromFields__sc_Iterable__Lio_circe_Json(fields); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
})); | |
return new $c_Lio_circe_Json$JArray(values.toVector__sci_Vector()); | |
}; | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.codes$quine$labs$recheck$codec$package$$$anonfun$encodeErrorKind$1__Lcodes_quine_labs_recheck_diagnostics_Diagnostics$ErrorKind__Lio_circe_Json = function(x0$1) { | |
var x = $m_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$ErrorKind$Timeout$(); | |
if (x === x0$1) { | |
var this$5 = $m_Lio_circe_Json$(); | |
var array = [$m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("kind", "timeout", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
return this$5.fromFields__sc_Iterable__Lio_circe_Json(fields); | |
} else { | |
var x$3 = $m_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$ErrorKind$Cancel$(); | |
if (x$3 === x0$1) { | |
var this$10 = $m_Lio_circe_Json$(); | |
var array$1 = [$m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("kind", "cancel", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
return this$10.fromFields__sc_Iterable__Lio_circe_Json(fields$1); | |
} else if (x0$1 instanceof $c_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$ErrorKind$Unsupported) { | |
var x4 = x0$1; | |
var message = x4.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$ErrorKind$Unsupported__f_message; | |
var this$16 = $m_Lio_circe_Json$(); | |
var array$2 = [$m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("kind", "unsupported", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("message", message, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields$2 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$2); | |
return this$16.fromFields__sc_Iterable__Lio_circe_Json(fields$2); | |
} else if (x0$1 instanceof $c_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$ErrorKind$InvalidRegExp) { | |
var x5 = x0$1; | |
var message$2 = x5.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$ErrorKind$InvalidRegExp__f_message; | |
var this$22 = $m_Lio_circe_Json$(); | |
var array$3 = [$m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("kind", "invalid", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("message", message$2, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields$3 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$3); | |
return this$22.fromFields__sc_Iterable__Lio_circe_Json(fields$3); | |
} else if (x0$1 instanceof $c_Lcodes_quine_labs_recheck_diagnostics_Diagnostics$ErrorKind$Unexpected) { | |
var x6 = x0$1; | |
var message$3 = x6.Lcodes_quine_labs_recheck_diagnostics_Diagnostics$ErrorKind$Unexpected__f_message; | |
var this$28 = $m_Lio_circe_Json$(); | |
var array$4 = [$m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("kind", "unexpected", $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString), $m_Lio_circe_syntax_package$KeyOps$().$colon$eq$extension__O__O__Lio_circe_Encoder__Lio_circe_KeyEncoder__T2("message", message$3, $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString, $m_Lio_circe_KeyEncoder$().Lio_circe_KeyEncoder$__f_encodeKeyString)]; | |
var fields$4 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$4); | |
return this$28.fromFields__sc_Iterable__Lio_circe_Json(fields$4); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.codes$quine$labs$recheck$codec$package$$$anonfun$encodeUString$1__T__Lio_circe_Json = function(x$1) { | |
var encoder = $m_Lio_circe_Encoder$().Lio_circe_Encoder$__f_encodeString; | |
return encoder.apply__O__Lio_circe_Json(x$1); | |
}; | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.codes$quine$labs$recheck$codec$package$$$anonfun$decodeParameters$1__Lio_circe_HCursor__Lio_circe_Decoder__s_util_Either = function(c, decodeLogger$1) { | |
var this$1 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "accelerationMode", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultAccelerationMode, $m_Lcodes_quine_labs_recheck_codec_package$().decodeAccelerationMode__Lio_circe_Decoder(), c); | |
if (this$1 instanceof $c_s_util_Right) { | |
var x2 = this$1; | |
var b = x2.s_util_Right__f_value; | |
var accelerationMode = b; | |
var this$2 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "attackLimit", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultAttackLimit, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$2 instanceof $c_s_util_Right) { | |
var x2$1 = this$2; | |
var b$1 = x2$1.s_util_Right__f_value; | |
var attackLimit = b$1 | 0; | |
var fallback = $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultAttackTimeout; | |
var this$4 = c.downField__T__Lio_circe_ACursor("attackTimeout"); | |
if (this$4 instanceof $c_Lio_circe_HCursor) { | |
var x2$2 = this$4; | |
var x1 = $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$decodeDuration$1__Lio_circe_HCursor__s_util_Either(x2$2); | |
} else { | |
$m_s_package$(); | |
var history = this$4.history__sci_List(); | |
var b$2 = new $c_scm_ListBuffer(); | |
var these = history; | |
while (true) { | |
if (!these.isEmpty__Z()) { | |
var arg1 = these.head__O(); | |
var x$1 = arg1; | |
var x$2 = $m_Lio_circe_CursorOp$DeleteGoParent$(); | |
var $$x1 = !(x$1 !== null && x$1.equals__O__Z(x$2)); | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
var elem = these.head__O(); | |
b$2.addOne__O__scm_ListBuffer(elem); | |
these = these.tail__O(); | |
} else { | |
break; | |
} | |
} | |
; | |
var historyToFailedCursor = b$2.toList__sci_List(); | |
var field = $f_T__replaceFirst__T__T__T($m_Lio_circe_CursorOp$().opsToPath__sci_List__T(historyToFailedCursor), "^\\.", ""); | |
var down = this$4.downField__T__Lio_circe_ACursor(field); | |
if (down.succeeded__Z()) { | |
$m_Lio_circe_DecodingFailure$(); | |
var message = "Couldn't decode " + field; | |
var ops = new $c_sjsr_AnonFunction0(((history$1) => () => history$1)(history)); | |
var value = new $c_Lio_circe_DecodingFailure$$anon$3(message, ops); | |
} else { | |
$m_Lio_circe_DecodingFailure$(); | |
var reason = $m_Lio_circe_DecodingFailure$Reason$MissingField$(); | |
var ops$1 = new $c_sjsr_AnonFunction0(((history$2) => () => history$2)(history)); | |
var value = new $c_Lio_circe_DecodingFailure$$anon$4(reason, ops$1); | |
} | |
; | |
var x1 = new $c_s_util_Left(value); | |
} | |
; | |
matchEnd4: { | |
var this$9; | |
if (x1 instanceof $c_s_util_Left) { | |
var x2$3 = x1; | |
var failure = x2$3.s_util_Left__f_value; | |
var x = failure.Lio_circe_DecodingFailure__f_reason; | |
var x$2$1 = $m_Lio_circe_DecodingFailure$Reason$MissingField$(); | |
if (x !== null && x.equals__O__Z(x$2$1)) { | |
$m_s_package$(); | |
var this$9 = new $c_s_util_Right(fallback); | |
break matchEnd4; | |
} | |
} | |
; | |
var this$9 = x1; | |
} | |
; | |
if (this$9 instanceof $c_s_util_Right) { | |
var x2$4 = this$9; | |
var b$3 = x2$4.s_util_Right__f_value; | |
var attackTimeout = b$3; | |
var this$10 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "checker", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultChecker, $m_Lcodes_quine_labs_recheck_codec_package$().decodeChecker__Lio_circe_Decoder(), c); | |
if (this$10 instanceof $c_s_util_Right) { | |
var x2$5 = this$10; | |
var b$4 = x2$5.s_util_Right__f_value; | |
var checker = b$4; | |
var this$11 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "crossoverSize", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultCrossoverSize, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$11 instanceof $c_s_util_Right) { | |
var x2$6 = this$11; | |
var b$5 = x2$6.s_util_Right__f_value; | |
var crossoverSize = b$5 | 0; | |
var this$12 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "heatRatio", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultHeatRatio, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeDouble, c); | |
if (this$12 instanceof $c_s_util_Right) { | |
var x2$7 = this$12; | |
var b$6 = x2$7.s_util_Right__f_value; | |
var heatRatio = +b$6; | |
var this$13 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "incubationLimit", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultIncubationLimit, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$13 instanceof $c_s_util_Right) { | |
var x2$8 = this$13; | |
var b$7 = x2$8.s_util_Right__f_value; | |
var incubationLimit = b$7 | 0; | |
var fallback$1 = $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultIncubationTimeout; | |
var this$15 = c.downField__T__Lio_circe_ACursor("incubationTimeout"); | |
if (this$15 instanceof $c_Lio_circe_HCursor) { | |
var x2$9 = this$15; | |
var x1$1 = $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$decodeDuration$1__Lio_circe_HCursor__s_util_Either(x2$9); | |
} else { | |
$m_s_package$(); | |
var history$3 = this$15.history__sci_List(); | |
var b$8 = new $c_scm_ListBuffer(); | |
var these$1 = history$3; | |
while (true) { | |
if (!these$1.isEmpty__Z()) { | |
var arg1$1 = these$1.head__O(); | |
var x$1$1 = arg1$1; | |
var x$2$2 = $m_Lio_circe_CursorOp$DeleteGoParent$(); | |
var $$x2 = !(x$1$1 !== null && x$1$1.equals__O__Z(x$2$2)); | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
var elem$1 = these$1.head__O(); | |
b$8.addOne__O__scm_ListBuffer(elem$1); | |
these$1 = these$1.tail__O(); | |
} else { | |
break; | |
} | |
} | |
; | |
var historyToFailedCursor$1 = b$8.toList__sci_List(); | |
var field$1 = $f_T__replaceFirst__T__T__T($m_Lio_circe_CursorOp$().opsToPath__sci_List__T(historyToFailedCursor$1), "^\\.", ""); | |
var down$1 = this$15.downField__T__Lio_circe_ACursor(field$1); | |
if (down$1.succeeded__Z()) { | |
$m_Lio_circe_DecodingFailure$(); | |
var message$1 = "Couldn't decode " + field$1; | |
var ops$2 = new $c_sjsr_AnonFunction0(((history$4) => () => history$4)(history$3)); | |
var value$1 = new $c_Lio_circe_DecodingFailure$$anon$3(message$1, ops$2); | |
} else { | |
$m_Lio_circe_DecodingFailure$(); | |
var reason$1 = $m_Lio_circe_DecodingFailure$Reason$MissingField$(); | |
var ops$3 = new $c_sjsr_AnonFunction0(((history$5) => () => history$5)(history$3)); | |
var value$1 = new $c_Lio_circe_DecodingFailure$$anon$4(reason$1, ops$3); | |
} | |
; | |
var x1$1 = new $c_s_util_Left(value$1); | |
} | |
; | |
matchEnd4$1: { | |
var this$20; | |
if (x1$1 instanceof $c_s_util_Left) { | |
var x2$10 = x1$1; | |
var failure$1 = x2$10.s_util_Left__f_value; | |
var x$3 = failure$1.Lio_circe_DecodingFailure__f_reason; | |
var x$2$3 = $m_Lio_circe_DecodingFailure$Reason$MissingField$(); | |
if (x$3 !== null && x$3.equals__O__Z(x$2$3)) { | |
$m_s_package$(); | |
var this$20 = new $c_s_util_Right(fallback$1); | |
break matchEnd4$1; | |
} | |
} | |
; | |
var this$20 = x1$1; | |
} | |
; | |
if (this$20 instanceof $c_s_util_Right) { | |
var x2$11 = this$20; | |
var b$9 = x2$11.s_util_Right__f_value; | |
var incubationTimeout = b$9; | |
var this$22 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "logger", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultLogger, ($m_Lio_circe_Decoder$(), new $c_Lio_circe_Decoder$$anon$40(decodeLogger$1)), c); | |
if (this$22 instanceof $c_s_util_Right) { | |
var x2$12 = this$22; | |
var b$10 = x2$12.s_util_Right__f_value; | |
var logger = b$10; | |
var this$23 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "maxAttackStringSize", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultMaxAttackStringSize, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$23 instanceof $c_s_util_Right) { | |
var x2$13 = this$23; | |
var b$11 = x2$13.s_util_Right__f_value; | |
var maxAttackStringSize = b$11 | 0; | |
var this$24 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "maxDegree", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultMaxDegree, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$24 instanceof $c_s_util_Right) { | |
var x2$14 = this$24; | |
var b$12 = x2$14.s_util_Right__f_value; | |
var maxDegree = b$12 | 0; | |
var this$25 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "maxGeneStringSize", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultMaxGeneStringSize, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$25 instanceof $c_s_util_Right) { | |
var x2$15 = this$25; | |
var b$13 = x2$15.s_util_Right__f_value; | |
var maxGeneStringSize = b$13 | 0; | |
var this$26 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "maxGenerationSize", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultMaxGenerationSize, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$26 instanceof $c_s_util_Right) { | |
var x2$16 = this$26; | |
var b$14 = x2$16.s_util_Right__f_value; | |
var maxGenerationSize = b$14 | 0; | |
var this$27 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "maxInitialGenerationSize", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultMaxInitialGenerationSize, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$27 instanceof $c_s_util_Right) { | |
var x2$17 = this$27; | |
var b$15 = x2$17.s_util_Right__f_value; | |
var maxInitialGenerationSize = b$15 | 0; | |
var this$28 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "maxIteration", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultMaxIteration, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$28 instanceof $c_s_util_Right) { | |
var x2$18 = this$28; | |
var b$16 = x2$18.s_util_Right__f_value; | |
var maxIteration = b$16 | 0; | |
var this$29 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "maxNFASize", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultMaxNFASize, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$29 instanceof $c_s_util_Right) { | |
var x2$19 = this$29; | |
var b$17 = x2$19.s_util_Right__f_value; | |
var maxNFASize = b$17 | 0; | |
var this$30 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "maxPatternSize", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultMaxPatternSize, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$30 instanceof $c_s_util_Right) { | |
var x2$20 = this$30; | |
var b$18 = x2$20.s_util_Right__f_value; | |
var maxPatternSize = b$18 | 0; | |
var this$31 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "maxRecallStringSize", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultMaxRecallStringSize, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$31 instanceof $c_s_util_Right) { | |
var x2$21 = this$31; | |
var b$19 = x2$21.s_util_Right__f_value; | |
var maxRecallStringSize = b$19 | 0; | |
var this$32 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "maxRepeatCount", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultMaxRepeatCount, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$32 instanceof $c_s_util_Right) { | |
var x2$22 = this$32; | |
var b$20 = x2$22.s_util_Right__f_value; | |
var maxRepeatCount = b$20 | 0; | |
var this$33 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "maxSimpleRepeatCount", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultMaxSimpleRepeatCount, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$33 instanceof $c_s_util_Right) { | |
var x2$23 = this$33; | |
var b$21 = x2$23.s_util_Right__f_value; | |
var maxSimpleRepeatCount = b$21 | 0; | |
var this$34 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "mutationSize", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultMutationSize, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$34 instanceof $c_s_util_Right) { | |
var x2$24 = this$34; | |
var b$22 = x2$24.s_util_Right__f_value; | |
var mutationSize = b$22 | 0; | |
var this$35 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "randomSeed", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultRandomSeed, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeLong, c); | |
if (this$35 instanceof $c_s_util_Right) { | |
var x2$25 = this$35; | |
var b$23 = x2$25.s_util_Right__f_value; | |
var t = $uJ(b$23); | |
var lo = t.RTLong__f_lo; | |
var hi = t.RTLong__f_hi; | |
var this$36 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "recallLimit", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultRecallLimit, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$36 instanceof $c_s_util_Right) { | |
var x2$26 = this$36; | |
var b$24 = x2$26.s_util_Right__f_value; | |
var recallLimit = b$24 | 0; | |
var fallback$2 = $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultRecallTimeout; | |
var this$38 = c.downField__T__Lio_circe_ACursor("recallTimeout"); | |
if (this$38 instanceof $c_Lio_circe_HCursor) { | |
var x2$27 = this$38; | |
var x1$2 = $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$decodeDuration$1__Lio_circe_HCursor__s_util_Either(x2$27); | |
} else { | |
$m_s_package$(); | |
var history$6 = this$38.history__sci_List(); | |
var b$25 = new $c_scm_ListBuffer(); | |
var these$2 = history$6; | |
while (true) { | |
if (!these$2.isEmpty__Z()) { | |
var arg1$2 = these$2.head__O(); | |
var x$1$2 = arg1$2; | |
var x$2$4 = $m_Lio_circe_CursorOp$DeleteGoParent$(); | |
var $$x3 = !(x$1$2 !== null && x$1$2.equals__O__Z(x$2$4)); | |
} else { | |
var $$x3 = false; | |
} | |
; | |
if ($$x3) { | |
var elem$2 = these$2.head__O(); | |
b$25.addOne__O__scm_ListBuffer(elem$2); | |
these$2 = these$2.tail__O(); | |
} else { | |
break; | |
} | |
} | |
; | |
var historyToFailedCursor$2 = b$25.toList__sci_List(); | |
var field$2 = $f_T__replaceFirst__T__T__T($m_Lio_circe_CursorOp$().opsToPath__sci_List__T(historyToFailedCursor$2), "^\\.", ""); | |
var down$2 = this$38.downField__T__Lio_circe_ACursor(field$2); | |
if (down$2.succeeded__Z()) { | |
$m_Lio_circe_DecodingFailure$(); | |
var message$2 = "Couldn't decode " + field$2; | |
var ops$4 = new $c_sjsr_AnonFunction0(((history$7) => () => history$7)(history$6)); | |
var value$2 = new $c_Lio_circe_DecodingFailure$$anon$3(message$2, ops$4); | |
} else { | |
$m_Lio_circe_DecodingFailure$(); | |
var reason$2 = $m_Lio_circe_DecodingFailure$Reason$MissingField$(); | |
var ops$5 = new $c_sjsr_AnonFunction0(((history$8) => () => history$8)(history$6)); | |
var value$2 = new $c_Lio_circe_DecodingFailure$$anon$4(reason$2, ops$5); | |
} | |
; | |
var x1$2 = new $c_s_util_Left(value$2); | |
} | |
; | |
matchEnd4$2: { | |
var this$43; | |
if (x1$2 instanceof $c_s_util_Left) { | |
var x2$28 = x1$2; | |
var failure$2 = x2$28.s_util_Left__f_value; | |
var x$4 = failure$2.Lio_circe_DecodingFailure__f_reason; | |
var x$2$5 = $m_Lio_circe_DecodingFailure$Reason$MissingField$(); | |
if (x$4 !== null && x$4.equals__O__Z(x$2$5)) { | |
$m_s_package$(); | |
var this$43 = new $c_s_util_Right(fallback$2); | |
break matchEnd4$2; | |
} | |
} | |
; | |
var this$43 = x1$2; | |
} | |
; | |
if (this$43 instanceof $c_s_util_Right) { | |
var x2$29 = this$43; | |
var b$26 = x2$29.s_util_Right__f_value; | |
var recallTimeout = b$26; | |
var this$44 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "seeder", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultSeeder, $m_Lcodes_quine_labs_recheck_codec_package$().decodeSeeder__Lio_circe_Decoder(), c); | |
if (this$44 instanceof $c_s_util_Right) { | |
var x2$30 = this$44; | |
var b$27 = x2$30.s_util_Right__f_value; | |
var seeder = b$27; | |
var this$45 = $p_Lcodes_quine_labs_recheck_codec_package$__getOrElse$1__T__O__Lio_circe_Decoder__Lio_circe_HCursor__s_util_Either(this, "seedingLimit", $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultSeedingLimit, $m_Lio_circe_Decoder$().Lio_circe_Decoder$__f_decodeInt, c); | |
if (this$45 instanceof $c_s_util_Right) { | |
var x2$31 = this$45; | |
var b$28 = x2$31.s_util_Right__f_value; | |
var seedingLimit = b$28 | 0; | |
var fallback$3 = $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultSeedingTimeout; | |
var this$47 = c.downField__T__Lio_circe_ACursor("seedingTimeout"); | |
if (this$47 instanceof $c_Lio_circe_HCursor) { | |
var x2$32 = this$47; | |
var x1$3 = $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$decodeDuration$1__Lio_circe_HCursor__s_util_Either(x2$32); | |
} else { | |
$m_s_package$(); | |
var history$9 = this$47.history__sci_List(); | |
var b$29 = new $c_scm_ListBuffer(); | |
var these$3 = history$9; | |
while (true) { | |
if (!these$3.isEmpty__Z()) { | |
var arg1$3 = these$3.head__O(); | |
var x$1$3 = arg1$3; | |
var x$2$6 = $m_Lio_circe_CursorOp$DeleteGoParent$(); | |
var $$x4 = !(x$1$3 !== null && x$1$3.equals__O__Z(x$2$6)); | |
} else { | |
var $$x4 = false; | |
} | |
; | |
if ($$x4) { | |
var elem$3 = these$3.head__O(); | |
b$29.addOne__O__scm_ListBuffer(elem$3); | |
these$3 = these$3.tail__O(); | |
} else { | |
break; | |
} | |
} | |
; | |
var historyToFailedCursor$3 = b$29.toList__sci_List(); | |
var field$3 = $f_T__replaceFirst__T__T__T($m_Lio_circe_CursorOp$().opsToPath__sci_List__T(historyToFailedCursor$3), "^\\.", ""); | |
var down$3 = this$47.downField__T__Lio_circe_ACursor(field$3); | |
if (down$3.succeeded__Z()) { | |
$m_Lio_circe_DecodingFailure$(); | |
var message$3 = "Couldn't decode " + field$3; | |
var ops$6 = new $c_sjsr_AnonFunction0(((history$10) => () => history$10)(history$9)); | |
var value$3 = new $c_Lio_circe_DecodingFailure$$anon$3(message$3, ops$6); | |
} else { | |
$m_Lio_circe_DecodingFailure$(); | |
var reason$3 = $m_Lio_circe_DecodingFailure$Reason$MissingField$(); | |
var ops$7 = new $c_sjsr_AnonFunction0(((history$11) => () => history$11)(history$9)); | |
var value$3 = new $c_Lio_circe_DecodingFailure$$anon$4(reason$3, ops$7); | |
} | |
; | |
var x1$3 = new $c_s_util_Left(value$3); | |
} | |
; | |
matchEnd4$3: { | |
var this$52; | |
if (x1$3 instanceof $c_s_util_Left) { | |
var x2$33 = x1$3; | |
var failure$3 = x2$33.s_util_Left__f_value; | |
var x$5 = failure$3.Lio_circe_DecodingFailure__f_reason; | |
var x$2$7 = $m_Lio_circe_DecodingFailure$Reason$MissingField$(); | |
if (x$5 !== null && x$5.equals__O__Z(x$2$7)) { | |
$m_s_package$(); | |
var this$52 = new $c_s_util_Right(fallback$3); | |
break matchEnd4$3; | |
} | |
} | |
; | |
var this$52 = x1$3; | |
} | |
; | |
if (this$52 instanceof $c_s_util_Right) { | |
var x2$34 = this$52; | |
var b$30 = x2$34.s_util_Right__f_value; | |
var seedingTimeout = b$30; | |
var fallback$4 = $m_Lcodes_quine_labs_recheck_common_Parameters$().Lcodes_quine_labs_recheck_common_Parameters$__f_DefaultTimeout; | |
var this$54 = c.downField__T__Lio_circe_ACursor("timeout"); | |
if (this$54 instanceof $c_Lio_circe_HCursor) { | |
var x2$35 = this$54; | |
var x1$4 = $m_Lcodes_quine_labs_recheck_codec_package$().codes$quine$labs$recheck$codec$package$$$anonfun$decodeDuration$1__Lio_circe_HCursor__s_util_Either(x2$35); | |
} else { | |
$m_s_package$(); | |
var history$12 = this$54.history__sci_List(); | |
var b$31 = new $c_scm_ListBuffer(); | |
var these$4 = history$12; | |
while (true) { | |
if (!these$4.isEmpty__Z()) { | |
var arg1$4 = these$4.head__O(); | |
var x$1$4 = arg1$4; | |
var x$2$8 = $m_Lio_circe_CursorOp$DeleteGoParent$(); | |
var $$x5 = !(x$1$4 !== null && x$1$4.equals__O__Z(x$2$8)); | |
} else { | |
var $$x5 = false; | |
} | |
; | |
if ($$x5) { | |
var elem$4 = these$4.head__O(); | |
b$31.addOne__O__scm_ListBuffer(elem$4); | |
these$4 = these$4.tail__O(); | |
} else { | |
break; | |
} | |
} | |
; | |
var historyToFailedCursor$4 = b$31.toList__sci_List(); | |
var field$4 = $f_T__replaceFirst__T__T__T($m_Lio_circe_CursorOp$().opsToPath__sci_List__T(historyToFailedCursor$4), "^\\.", ""); | |
var down$4 = this$54.downField__T__Lio_circe_ACursor(field$4); | |
if (down$4.succeeded__Z()) { | |
$m_Lio_circe_DecodingFailure$(); | |
var message$4 = "Couldn't decode " + field$4; | |
var ops$8 = new $c_sjsr_AnonFunction0(((history$13) => () => history$13)(history$12)); | |
var value$4 = new $c_Lio_circe_DecodingFailure$$anon$3(message$4, ops$8); | |
} else { | |
$m_Lio_circe_DecodingFailure$(); | |
var reason$4 = $m_Lio_circe_DecodingFailure$Reason$MissingField$(); | |
var ops$9 = new $c_sjsr_AnonFunction0(((history$14) => () => history$14)(history$12)); | |
var value$4 = new $c_Lio_circe_DecodingFailure$$anon$4(reason$4, ops$9); | |
} | |
; | |
var x1$4 = new $c_s_util_Left(value$4); | |
} | |
; | |
matchEnd4$4: { | |
var this$59; | |
if (x1$4 instanceof $c_s_util_Left) { | |
var x2$36 = x1$4; | |
var failure$4 = x2$36.s_util_Left__f_value; | |
var x$6 = failure$4.Lio_circe_DecodingFailure__f_reason; | |
var x$2$9 = $m_Lio_circe_DecodingFailure$Reason$MissingField$(); | |
if (x$6 !== null && x$6.equals__O__Z(x$2$9)) { | |
$m_s_package$(); | |
var this$59 = new $c_s_util_Right(fallback$4); | |
break matchEnd4$4; | |
} | |
} | |
; | |
var this$59 = x1$4; | |
} | |
; | |
if (this$59 instanceof $c_s_util_Right) { | |
var x2$37 = this$59; | |
var b$32 = x2$37.s_util_Right__f_value; | |
var timeout = b$32; | |
return new $c_s_util_Right(new $c_Lcodes_quine_labs_recheck_common_Parameters(accelerationMode, attackLimit, attackTimeout, checker, crossoverSize, heatRatio, incubationLimit, incubationTimeout, logger, maxAttackStringSize, maxDegree, maxGeneStringSize, maxGenerationSize, maxInitialGenerationSize, maxIteration, maxNFASize, maxPatternSize, maxRecallStringSize, maxRepeatCount, maxSimpleRepeatCount, mutationSize, new $c_RTLong(lo, hi), recallLimit, recallTimeout, seeder, seedingLimit, seedingTimeout, timeout)); | |
} else { | |
return this$59; | |
} | |
} else { | |
return this$52; | |
} | |
} else { | |
return this$45; | |
} | |
} else { | |
return this$44; | |
} | |
} else { | |
return this$43; | |
} | |
} else { | |
return this$36; | |
} | |
} else { | |
return this$35; | |
} | |
} else { | |
return this$34; | |
} | |
} else { | |
return this$33; | |
} | |
} else { | |
return this$32; | |
} | |
} else { | |
return this$31; | |
} | |
} else { | |
return this$30; | |
} | |
} else { | |
return this$29; | |
} | |
} else { | |
return this$28; | |
} | |
} else { | |
return this$27; | |
} | |
} else { | |
return this$26; | |
} | |
} else { | |
return this$25; | |
} | |
} else { | |
return this$24; | |
} | |
} else { | |
return this$23; | |
} | |
} else { | |
return this$22; | |
} | |
} else { | |
return this$20; | |
} | |
} else { | |
return this$13; | |
} | |
} else { | |
return this$12; | |
} | |
} else { | |
return this$11; | |
} | |
} else { | |
return this$10; | |
} | |
} else { | |
return this$9; | |
} | |
} else { | |
return this$2; | |
} | |
} else { | |
return this$1; | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.codes$quine$labs$recheck$codec$package$$$anonfun$decodeDuration$1__Lio_circe_HCursor__s_util_Either = function(c) { | |
if (c.value__Lio_circe_Json().isNull__Z()) { | |
$m_s_package$(); | |
var value = $m_s_concurrent_duration_Duration$().s_concurrent_duration_Duration$__f_Inf; | |
return new $c_s_util_Right(value); | |
} else if (c.value__Lio_circe_Json().isNumber__Z()) { | |
var this$2 = c.value__Lio_circe_Json().asNumber__s_Option(); | |
if (this$2.isEmpty__Z()) { | |
var x1 = $m_s_None$(); | |
} else { | |
var arg1 = this$2.get__O(); | |
var x$2 = arg1; | |
var x1 = x$2.toInt__s_Option(); | |
} | |
; | |
if (x1 instanceof $c_s_Some) { | |
var x2 = x1; | |
var d = x2.s_Some__f_value | 0; | |
$m_s_package$(); | |
$m_s_concurrent_duration_Duration$(); | |
var hi = d >> 31; | |
var unit = $m_ju_concurrent_TimeUnit$().ju_concurrent_TimeUnit$__f_MILLISECONDS; | |
var value$1 = new $c_s_concurrent_duration_FiniteDuration(new $c_RTLong(d, hi), unit); | |
return new $c_s_util_Right(value$1); | |
} else { | |
var x = $m_s_None$(); | |
if (x === x1) { | |
$m_s_package$(); | |
$m_Lio_circe_DecodingFailure$(); | |
var ops = new $c_sjsr_AnonFunction0(((c$1) => () => c$1.history__sci_List())(c)); | |
var value$2 = new $c_Lio_circe_DecodingFailure$$anon$3("Duration", ops); | |
return new $c_s_util_Left(value$2); | |
} else { | |
throw new $c_s_MatchError(x1); | |
} | |
} | |
} else { | |
$m_s_package$(); | |
$m_Lio_circe_DecodingFailure$(); | |
var ops$1 = new $c_sjsr_AnonFunction0(((c$2) => () => c$2.history__sci_List())(c)); | |
var value$3 = new $c_Lio_circe_DecodingFailure$$anon$3("Duration", ops$1); | |
return new $c_s_util_Left(value$3); | |
} | |
}; | |
var $d_Lcodes_quine_labs_recheck_codec_package$ = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_codec_package$: 0 | |
}, false, "codes.quine.labs.recheck.codec.package$", { | |
Lcodes_quine_labs_recheck_codec_package$: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_codec_package$.prototype.$classData = $d_Lcodes_quine_labs_recheck_codec_package$; | |
var $n_Lcodes_quine_labs_recheck_codec_package$; | |
function $m_Lcodes_quine_labs_recheck_codec_package$() { | |
if (!$n_Lcodes_quine_labs_recheck_codec_package$) { | |
$n_Lcodes_quine_labs_recheck_codec_package$ = new $c_Lcodes_quine_labs_recheck_codec_package$(); | |
} | |
; | |
return $n_Lcodes_quine_labs_recheck_codec_package$; | |
} | |
function $c_Lcodes_quine_labs_recheck_common_Context(deadline, token, logger) { | |
this.Lcodes_quine_labs_recheck_common_Context__f_deadline = null; | |
this.Lcodes_quine_labs_recheck_common_Context__f_token = null; | |
this.Lcodes_quine_labs_recheck_common_Context__f_logger = null; | |
this.Lcodes_quine_labs_recheck_common_Context__f_hasLogger = false; | |
this.Lcodes_quine_labs_recheck_common_Context__f_deadline = deadline; | |
this.Lcodes_quine_labs_recheck_common_Context__f_token = token; | |
this.Lcodes_quine_labs_recheck_common_Context__f_logger = logger; | |
this.Lcodes_quine_labs_recheck_common_Context__f_hasLogger = logger !== null; | |
} | |
$c_Lcodes_quine_labs_recheck_common_Context.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_common_Context.prototype.constructor = $c_Lcodes_quine_labs_recheck_common_Context; | |
function $h_Lcodes_quine_labs_recheck_common_Context() { | |
} | |
$h_Lcodes_quine_labs_recheck_common_Context.prototype = $c_Lcodes_quine_labs_recheck_common_Context.prototype; | |
var $d_Lcodes_quine_labs_recheck_common_Context = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_common_Context: 0 | |
}, false, "codes.quine.labs.recheck.common.Context", { | |
Lcodes_quine_labs_recheck_common_Context: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_common_Context.prototype.$classData = $d_Lcodes_quine_labs_recheck_common_Context; | |
function $c_Lcodes_quine_labs_recheck_common_Context$() { | |
} | |
$c_Lcodes_quine_labs_recheck_common_Context$.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_common_Context$.prototype.constructor = $c_Lcodes_quine_labs_recheck_common_Context$; | |
function $h_Lcodes_quine_labs_recheck_common_Context$() { | |
} | |
$h_Lcodes_quine_labs_recheck_common_Context$.prototype = $c_Lcodes_quine_labs_recheck_common_Context$.prototype; | |
$c_Lcodes_quine_labs_recheck_common_Context$.prototype.apply__s_concurrent_duration_Duration__s_Option__s_Option__Lcodes_quine_labs_recheck_common_Context = function(timeout, token, logger) { | |
var that = $m_s_concurrent_duration_Duration$().s_concurrent_duration_Duration$__f_Zero; | |
if ($f_s_math_Ordered__$less__O__Z(timeout, that)) { | |
$m_s_concurrent_duration_Duration$(); | |
var unit = $m_ju_concurrent_TimeUnit$().ju_concurrent_TimeUnit$__f_SECONDS; | |
var time = new $c_s_concurrent_duration_FiniteDuration(new $c_RTLong(-1, -1), unit); | |
return new $c_Lcodes_quine_labs_recheck_common_Context(new $c_s_concurrent_duration_Deadline(time), null, ($m_s_$less$colon$less$(), logger.isEmpty__Z() ? null : logger.get__O())); | |
} else if (timeout instanceof $c_s_concurrent_duration_FiniteDuration) { | |
var x2 = timeout; | |
return new $c_Lcodes_quine_labs_recheck_common_Context($m_s_concurrent_duration_Deadline$().now__s_concurrent_duration_Deadline().$plus__s_concurrent_duration_FiniteDuration__s_concurrent_duration_Deadline(x2), ($m_s_$less$colon$less$(), token.isEmpty__Z() ? null : token.get__O()), ($m_s_$less$colon$less$(), logger.isEmpty__Z() ? null : logger.get__O())); | |
} else if (timeout instanceof $c_s_concurrent_duration_Duration$Infinite) { | |
return new $c_Lcodes_quine_labs_recheck_common_Context(null, ($m_s_$less$colon$less$(), token.isEmpty__Z() ? null : token.get__O()), ($m_s_$less$colon$less$(), logger.isEmpty__Z() ? null : logger.get__O())); | |
} else { | |
throw new $c_s_MatchError(timeout); | |
} | |
}; | |
var $d_Lcodes_quine_labs_recheck_common_Context$ = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_common_Context$: 0 | |
}, false, "codes.quine.labs.recheck.common.Context$", { | |
Lcodes_quine_labs_recheck_common_Context$: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_common_Context$.prototype.$classData = $d_Lcodes_quine_labs_recheck_common_Context$; | |
var $n_Lcodes_quine_labs_recheck_common_Context$; | |
function $m_Lcodes_quine_labs_recheck_common_Context$() { | |
if (!$n_Lcodes_quine_labs_recheck_common_Context$) { | |
$n_Lcodes_quine_labs_recheck_common_Context$ = new $c_Lcodes_quine_labs_recheck_common_Context$(); | |
} | |
; | |
return $n_Lcodes_quine_labs_recheck_common_Context$; | |
} | |
function $c_Lcodes_quine_labs_recheck_exec_NodeExecutor$() { | |
} | |
$c_Lcodes_quine_labs_recheck_exec_NodeExecutor$.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_exec_NodeExecutor$.prototype.constructor = $c_Lcodes_quine_labs_recheck_exec_NodeExecutor$; | |
function $h_Lcodes_quine_labs_recheck_exec_NodeExecutor$() { | |
} | |
$h_Lcodes_quine_labs_recheck_exec_NodeExecutor$.prototype = $c_Lcodes_quine_labs_recheck_exec_NodeExecutor$.prototype; | |
$c_Lcodes_quine_labs_recheck_exec_NodeExecutor$.prototype.exec__T__s_Option__Lcodes_quine_labs_recheck_common_Context__s_Option = function(code, timeout, ctx) { | |
throw new $c_Lcodes_quine_labs_recheck_common_UnexpectedException("recall validation is not supported."); | |
}; | |
var $d_Lcodes_quine_labs_recheck_exec_NodeExecutor$ = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_exec_NodeExecutor$: 0 | |
}, false, "codes.quine.labs.recheck.exec.NodeExecutor$", { | |
Lcodes_quine_labs_recheck_exec_NodeExecutor$: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_exec_NodeExecutor$.prototype.$classData = $d_Lcodes_quine_labs_recheck_exec_NodeExecutor$; | |
var $n_Lcodes_quine_labs_recheck_exec_NodeExecutor$; | |
function $m_Lcodes_quine_labs_recheck_exec_NodeExecutor$() { | |
if (!$n_Lcodes_quine_labs_recheck_exec_NodeExecutor$) { | |
$n_Lcodes_quine_labs_recheck_exec_NodeExecutor$ = new $c_Lcodes_quine_labs_recheck_exec_NodeExecutor$(); | |
} | |
; | |
return $n_Lcodes_quine_labs_recheck_exec_NodeExecutor$; | |
} | |
function $c_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$() { | |
} | |
$c_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$.prototype.constructor = $c_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$; | |
function $h_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$() { | |
} | |
$h_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$.prototype = $c_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$.prototype; | |
$c_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$.prototype.seed__Lcodes_quine_labs_recheck_fuzz_FuzzProgram__I__s_concurrent_duration_Duration__I__Lcodes_quine_labs_recheck_common_AccelerationMode__Lcodes_quine_labs_recheck_common_Context__sci_Set = function(fuzz, limit, timeout, maxInitialGenerationSize, accelerationMode, ctx) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/DynamicSeeder.scala:32"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/DynamicSeeder.scala:32"); | |
} | |
} | |
; | |
var unicode = fuzz.Lcodes_quine_labs_recheck_fuzz_FuzzProgram__f_program.Lcodes_quine_labs_recheck_vm_Program__f_meta.Lcodes_quine_labs_recheck_vm_Program$Meta__f_unicode; | |
var set = $m_scm_Set$().empty__O(); | |
var added = $m_scm_Set$().empty__O(); | |
var queue = $ct_scm_Queue__I__(new $c_scm_Queue(), 16); | |
var covered = $m_scm_Set$().empty__O(); | |
var opts = new $c_Lcodes_quine_labs_recheck_vm_Interpreter$Options(limit, fuzz.usesAcceleration__Lcodes_quine_labs_recheck_common_AccelerationMode__Z(accelerationMode), true, true, true, false); | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/DynamicSeeder.scala:50"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/DynamicSeeder.scala:50"); | |
} | |
} | |
; | |
var elem = $ct_T2__O__O__(new $c_T2(), new $c_Lcodes_quine_labs_recheck_unicode_UString(""), $m_s_None$()); | |
queue.addOne__O__scm_ArrayDeque(elem); | |
fuzz.Lcodes_quine_labs_recheck_fuzz_FuzzProgram__f_alphabet.Lcodes_quine_labs_recheck_unicode_ICharSet__f_pairs.foreach__F1__V(new $c_sjsr_AnonFunction1(((queue$1, added$1) => (x$1$2) => { | |
var x$1 = x$1$2; | |
if (x$1 !== null) { | |
var ch = x$1._1__O(); | |
var this$3 = ch.head__Lcodes_quine_labs_recheck_unicode_UChar(); | |
var data = this$3.toChars__AC(); | |
var this$4 = $m_jl_String$(); | |
var count = data.u.length; | |
var s = this$4.new__AC__I__I__T(data, 0, count); | |
var elem$1 = $ct_T2__O__O__(new $c_T2(), new $c_Lcodes_quine_labs_recheck_unicode_UString(s), $m_s_None$()); | |
queue$1.addOne__O__scm_ArrayDeque(elem$1); | |
return added$1.add__O__Z(new $c_Lcodes_quine_labs_recheck_unicode_UString(s)); | |
} else { | |
throw new $c_s_MatchError(x$1); | |
} | |
})(queue, added))); | |
while (!queue.isEmpty__Z() && set.size__I() < maxInitialGenerationSize) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/DynamicSeeder.scala:59"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/DynamicSeeder.scala:59"); | |
} | |
} | |
; | |
var x1 = queue.removeHead__Z__O(false); | |
if (x1 === null) { | |
throw new $c_s_MatchError(x1); | |
} | |
; | |
var input = x1._1__O().Lcodes_quine_labs_recheck_unicode_UString__f_asString; | |
var target = x1._2__O(); | |
var _1 = new $c_Lcodes_quine_labs_recheck_unicode_UString(input); | |
var input$2 = _1.Lcodes_quine_labs_recheck_unicode_UString__f_asString; | |
if (target.isEmpty__Z()) { | |
var $$x1 = true; | |
} else { | |
var arg1 = target.get__O(); | |
var loc = arg1; | |
var $$x1 = !covered.contains__O__Z(new $c_Lcodes_quine_labs_recheck_vm_Interpreter$CoverageItem(loc, true)); | |
} | |
; | |
if ($$x1) { | |
var result = $m_Lcodes_quine_labs_recheck_vm_Interpreter$().runWithTimeout__Lcodes_quine_labs_recheck_vm_Program__T__I__Lcodes_quine_labs_recheck_vm_Interpreter$Options__s_concurrent_duration_Duration__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_vm_Interpreter$Result(fuzz.Lcodes_quine_labs_recheck_fuzz_FuzzProgram__f_program, input$2, 0, opts, timeout, ctx); | |
var x = result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_status; | |
var x$3 = $m_Lcodes_quine_labs_recheck_vm_Interpreter$Status$Limit$(); | |
if (x !== null && x === x$3) { | |
var $$x2 = true; | |
} else { | |
var x$4 = result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_status; | |
var x$5 = $m_Lcodes_quine_labs_recheck_vm_Interpreter$Status$Timeout$(); | |
var $$x2 = x$4 !== null && x$4 === x$5; | |
} | |
; | |
if ($$x2) { | |
set.add__O__Z($m_Lcodes_quine_labs_recheck_fuzz_FString$().apply__T__Z__Lcodes_quine_labs_recheck_fuzz_FString(input$2, unicode)); | |
set.add__O__Z($m_Lcodes_quine_labs_recheck_fuzz_FString$().build__T__sci_Seq__Z__Lcodes_quine_labs_recheck_fuzz_FString(input$2, result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_loops, unicode)); | |
return $m_sci_Set$().from__sc_IterableOnce__sci_Set(set); | |
} | |
; | |
if (!result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_coverage.subsetOf__sc_Set__Z(covered)) { | |
covered.addAll__sc_IterableOnce__scm_Growable(result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_coverage); | |
set.add__O__Z($m_Lcodes_quine_labs_recheck_fuzz_FString$().apply__T__Z__Lcodes_quine_labs_recheck_fuzz_FString(input$2, unicode)); | |
set.add__O__Z($m_Lcodes_quine_labs_recheck_fuzz_FString$().build__T__sci_Seq__Z__Lcodes_quine_labs_recheck_fuzz_FString(input$2, result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_loops, unicode)); | |
result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_failedPoints.foreach__F1__V(new $c_sjsr_AnonFunction1(((covered$1, fuzz$1, input$2$1, unicode$1, added$2, queue$2) => (failedPoint$2) => { | |
var failedPoint = failedPoint$2; | |
if (!covered$1.contains__O__Z(new $c_Lcodes_quine_labs_recheck_vm_Interpreter$CoverageItem(failedPoint.Lcodes_quine_labs_recheck_vm_Interpreter$FailedPoint__f_target, true))) { | |
$m_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$Patch$().build__Lcodes_quine_labs_recheck_vm_Interpreter$FailedPoint__Lcodes_quine_labs_recheck_unicode_ICharSet__Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$Patch(failedPoint, fuzz$1.Lcodes_quine_labs_recheck_fuzz_FuzzProgram__f_alphabet).apply__T__Z__sci_Seq(input$2$1, unicode$1).withFilter__F1__sc_WithFilter(new $c_sjsr_AnonFunction1(((added$1$1) => (patched$2) => { | |
var patched = patched$2.Lcodes_quine_labs_recheck_unicode_UString__f_asString; | |
return !added$1$1.contains__O__Z(new $c_Lcodes_quine_labs_recheck_unicode_UString(patched)); | |
})(added$2))).foreach__F1__V(new $c_sjsr_AnonFunction1(((queue$1$1, failedPoint$1, added$1$2) => (patched$3$2) => { | |
var patched$3 = patched$3$2.Lcodes_quine_labs_recheck_unicode_UString__f_asString; | |
var elem$2 = $ct_T2__O__O__(new $c_T2(), new $c_Lcodes_quine_labs_recheck_unicode_UString(patched$3), new $c_s_Some(failedPoint$1.Lcodes_quine_labs_recheck_vm_Interpreter$FailedPoint__f_target)); | |
queue$1$1.addOne__O__scm_ArrayDeque(elem$2); | |
return added$1$2.add__O__Z(new $c_Lcodes_quine_labs_recheck_unicode_UString(patched$3)); | |
})(queue$2, failedPoint, added$2))); | |
} | |
})(covered, fuzz, input$2, unicode, added, queue))); | |
} | |
} | |
} | |
; | |
return $m_sci_Set$().from__sc_IterableOnce__sci_Set(set); | |
}; | |
var $d_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$ = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$: 0 | |
}, false, "codes.quine.labs.recheck.fuzz.DynamicSeeder$", { | |
Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$.prototype.$classData = $d_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$; | |
var $n_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$; | |
function $m_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$() { | |
if (!$n_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$) { | |
$n_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$ = new $c_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$(); | |
} | |
; | |
return $n_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$; | |
} | |
function $p_Lcodes_quine_labs_recheck_fuzz_FuzzChecker__Population$lzycompute$1__V($thiz) { | |
if ($thiz.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_Population$module === null) { | |
$thiz.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_Population$module = new $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$($thiz); | |
} | |
} | |
function $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker(pattern, fuzz, random, seeder, maxSimpleRepeatCount, seedingLimit, seedingTimeout, incubationLimit, incubationTimeout, maxGeneStringSize, attackLimit, attackTimeout, crossoverSize, mutationSize, maxAttackStringSize, maxInitialGenerationSize, maxGenerationSize, maxIteration, maxDegree, heatRatio, accelerationMode, ctx) { | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_Population$module = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_pattern = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_seeder = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxSimpleRepeatCount = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_seedingLimit = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_seedingTimeout = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_incubationLimit = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_incubationTimeout = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxGeneStringSize = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_attackLimit = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_attackTimeout = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_crossoverSize = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_mutationSize = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxAttackStringSize = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxInitialGenerationSize = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxGenerationSize = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxIteration = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxDegree = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_heatRatio = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_accelerationMode = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_inputs = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_parts = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_mutators = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_pattern = pattern; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz = fuzz; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random = random; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_seeder = seeder; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxSimpleRepeatCount = maxSimpleRepeatCount; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_seedingLimit = seedingLimit; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_seedingTimeout = seedingTimeout; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_incubationLimit = incubationLimit; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_incubationTimeout = incubationTimeout; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxGeneStringSize = maxGeneStringSize; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_attackLimit = attackLimit; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_attackTimeout = attackTimeout; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_crossoverSize = crossoverSize; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_mutationSize = mutationSize; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxAttackStringSize = maxAttackStringSize; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxInitialGenerationSize = maxInitialGenerationSize; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxGenerationSize = maxGenerationSize; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxIteration = maxIteration; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxDegree = maxDegree; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_heatRatio = heatRatio; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_accelerationMode = accelerationMode; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx = ctx; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_inputs = $m_scm_Set$().empty__O(); | |
var this$1 = fuzz.Lcodes_quine_labs_recheck_fuzz_FuzzProgram__f_parts; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_parts = $m_sci_Seq$().from__sc_IterableOnce__sci_Seq(this$1); | |
var $$x1 = $m_s_package$().s_package$__f_IndexedSeq; | |
var array = [new $c_sjsr_AnonFunction2(((this$2) => (gen$2, next$2) => { | |
var gen = gen$2; | |
var next = next$2; | |
return this$2.mutateRepeat__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator(gen, next); | |
})(this)), new $c_sjsr_AnonFunction2(((this$2$1) => (gen$3$2, next$3$2) => { | |
var gen$3 = gen$3$2; | |
var next$3 = next$3$2; | |
return this$2$1.mutateInsert__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator(gen$3, next$3); | |
})(this)), new $c_sjsr_AnonFunction2(((this$3) => (gen$4$2, next$4$2) => { | |
var gen$4 = gen$4$2; | |
var next$4 = next$4$2; | |
return this$3.mutateInsertPart__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator(gen$4, next$4); | |
})(this)), new $c_sjsr_AnonFunction2(((this$4) => (gen$5$2, next$5$2) => { | |
var gen$5 = gen$5$2; | |
var next$5 = next$5$2; | |
return this$4.mutateUpdate__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator(gen$5, next$5); | |
})(this)), new $c_sjsr_AnonFunction2(((this$5) => (gen$6$2, next$6$2) => { | |
var gen$6 = gen$6$2; | |
var next$6 = next$6$2; | |
return this$5.mutateCopy__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator(gen$6, next$6); | |
})(this)), new $c_sjsr_AnonFunction2(((this$6) => (gen$7$2, next$7$2) => { | |
var gen$7 = gen$7$2; | |
var next$7 = next$7$2; | |
return this$6.mutateDelete__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator(gen$7, next$7); | |
})(this))]; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_mutators = $$x1.apply__sci_Seq__sc_SeqOps($ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array)); | |
} | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.constructor = $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker; | |
function $h_Lcodes_quine_labs_recheck_fuzz_FuzzChecker() { | |
} | |
$h_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype = $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.Population__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$ = function() { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_Population$module === null) { | |
$p_Lcodes_quine_labs_recheck_fuzz_FuzzChecker__Population$lzycompute$1__V(this); | |
} | |
; | |
return this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_Population$module; | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.unicode__Z = function() { | |
return this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz.Lcodes_quine_labs_recheck_fuzz_FuzzProgram__f_program.Lcodes_quine_labs_recheck_vm_Program__f_meta.Lcodes_quine_labs_recheck_vm_Program$Meta__f_unicode; | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.check__sc_Iterator = function() { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:142"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:142"); | |
} | |
} | |
; | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("fuzz: start (usesAcceleration: " + this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz.usesAcceleration__Lcodes_quine_labs_recheck_common_AccelerationMode__Z(this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_accelerationMode) + ")"); | |
} | |
; | |
var x1 = this.init__T2(); | |
if (x1 === null) { | |
throw new $c_s_MatchError(x1); | |
} | |
; | |
var initResults = x1._1__O(); | |
var initPop = x1._2__O(); | |
var pop = new $c_sr_ObjectRef(initPop); | |
var xs = new $c_sjsr_AnonFunction0(((this$2, pop$1) => () => { | |
var end = this$2.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxIteration; | |
var isEmpty = end < 1; | |
var this$10 = new $c_sci_RangeIterator(1, 1, end, isEmpty); | |
var f = new $c_sjsr_AnonFunction1(((this$9, pop$1$1) => (i$2) => { | |
var i = i$2 | 0; | |
var x1$1 = this$9.iterate__I__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__T2(i, pop$1$1.sr_ObjectRef__f_elem.toGeneration__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation()); | |
if (x1$1 === null) { | |
throw new $c_s_MatchError(x1$1); | |
} | |
; | |
var iterResults = x1$1._1__O(); | |
var iterPop = x1$1._2__O(); | |
pop$1$1.sr_ObjectRef__f_elem = iterPop; | |
return iterResults; | |
})(this$2, pop$1)); | |
return new $c_sc_Iterator$$anon$10(this$10, f); | |
})(this, pop)); | |
return initResults.concat__F0__sc_Iterator(xs); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.init__T2 = function() { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:157"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:157"); | |
} | |
} | |
; | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("fuzz: seeding start (seeder: " + this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_seeder + ")"); | |
} | |
; | |
var x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_seeder; | |
var x = $m_Lcodes_quine_labs_recheck_common_Seeder$Static$(); | |
if (x === x1) { | |
var staticSeed = $m_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$().seed__Lcodes_quine_labs_recheck_regexp_Pattern__I__I__I__I__Lcodes_quine_labs_recheck_common_Context__sci_Set(this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_pattern, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxSimpleRepeatCount, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxInitialGenerationSize, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_incubationLimit, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxGeneStringSize, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx); | |
if (staticSeed.size__I() < this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxInitialGenerationSize) { | |
var dynamicSeed = $m_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$().seed__Lcodes_quine_labs_recheck_fuzz_FuzzProgram__I__s_concurrent_duration_Duration__I__Lcodes_quine_labs_recheck_common_AccelerationMode__Lcodes_quine_labs_recheck_common_Context__sci_Set(this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_seedingLimit, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_seedingTimeout, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxInitialGenerationSize - staticSeed.size__I() | 0, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_accelerationMode, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx); | |
var seed = staticSeed.concat__sc_IterableOnce__sc_SetOps(dynamicSeed); | |
} else { | |
var seed = staticSeed; | |
} | |
} else { | |
var x$3 = $m_Lcodes_quine_labs_recheck_common_Seeder$Dynamic$(); | |
if (!(x$3 === x1)) { | |
throw new $c_s_MatchError(x1); | |
} | |
; | |
var seed = $m_Lcodes_quine_labs_recheck_fuzz_DynamicSeeder$().seed__Lcodes_quine_labs_recheck_fuzz_FuzzProgram__I__s_concurrent_duration_Duration__I__Lcodes_quine_labs_recheck_common_AccelerationMode__Lcodes_quine_labs_recheck_common_Context__sci_Set(this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_seedingLimit, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_seedingTimeout, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxInitialGenerationSize, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_accelerationMode, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx); | |
} | |
; | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
var $$x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_logger; | |
var x$1 = "|fuzz: seeding finish\n | size: " + seed.size__I(); | |
$$x1.apply__T__V($m_sc_StringOps$().stripMargin$extension__T__C__T(x$1, 124)); | |
} | |
; | |
var pop = new $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population(this, 0, $m_scm_Set$().empty__O(), $m_scm_Set$().empty__O()); | |
var this$4 = seed.iterator__sc_Iterator(); | |
var f = new $c_sjsr_AnonFunction1(((pop$1) => (str$2) => { | |
var str = str$2; | |
return pop$1.execute__Lcodes_quine_labs_recheck_fuzz_FString__sc_Iterator(str); | |
})(pop)); | |
return $ct_T2__O__O__(new $c_T2(), new $c_sc_Iterator$$anon$10(this$4, f), pop); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.iterate__I__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__T2 = function(i, gen) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:185"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:185"); | |
} | |
} | |
; | |
var next = this.Population__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$().from__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population(gen); | |
if (gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces.isEmpty__Z()) { | |
return $ct_T2__O__O__(new $c_T2(), $m_s_package$().s_package$__f_Iterator.sc_Iterator$__f_scala$collection$Iterator$$_empty, next); | |
} | |
; | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
var $$x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_logger; | |
var this$2 = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces; | |
var f = new $c_sjsr_AnonFunction1((x$3$2) => { | |
var x$3 = x$3$2; | |
return x$3.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_rate; | |
}); | |
var cmp = $m_s_math_Ordering$DeprecatedDoubleOrdering$(); | |
var max = $f_sc_IterableOnceOps__maxBy__F1__s_math_Ordering__O(this$2, f, cmp); | |
var this$3 = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces; | |
var x = "|fuzz: iteration " + i + "\n | traces: " + this$3.length__I() + "\n | max: " + max.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_str + " (steps: " + max.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_steps + ", rate: " + max.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_rate + ")"; | |
$$x1.apply__T__V($m_sc_StringOps$().stripMargin$extension__T__C__T(x, 124)); | |
} | |
; | |
var end = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_crossoverSize; | |
var isEmpty = end < 1; | |
var this$12 = new $c_sci_RangeIterator(1, 1, end, isEmpty); | |
var f$1 = new $c_sjsr_AnonFunction1(((this$2$1, gen$1, next$1) => (x$4$2) => this$2$1.cross__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator(gen$1, next$1))(this, gen, next)); | |
var crossovers = new $c_sc_Iterator$$anon$10(this$12, f$1); | |
var end$1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_mutationSize; | |
var isEmpty$1 = end$1 < 1; | |
var this$19 = new $c_sci_RangeIterator(1, 1, end$1, isEmpty$1); | |
var f$2 = new $c_sjsr_AnonFunction1(((this$3$1, gen$2, next$2) => (x$5$2) => this$3$1.mutate__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator(gen$2, next$2))(this, gen, next)); | |
var mutations = new $c_sc_Iterator$$anon$10(this$19, f$2); | |
var xs = new $c_sjsr_AnonFunction0(((mutations$1) => () => mutations$1)(mutations)); | |
return $ct_T2__O__O__(new $c_T2(), $f_sc_Iterator__concat__F0__sc_Iterator(crossovers, xs), next); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.cross__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator = function(gen, next) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:203"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:203"); | |
} | |
} | |
; | |
var $$x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$1 = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces; | |
var i1 = $$x1.between__I__I__I(0, this$1.length__I()); | |
var $$x2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$2 = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces; | |
var i2 = $$x2.between__I__I__I(0, this$2.length__I()); | |
var t1 = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces.apply__I__O(i1).Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_str; | |
var t2 = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces.apply__I__O(i2).Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_str; | |
var $$x3 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$3 = t1.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var pos1 = $$x3.between__I__I__I(0, 1 + this$3.length__I() | 0); | |
var $$x4 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$4 = t2.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var pos2 = $$x4.between__I__I__I(0, 1 + this$4.length__I() | 0); | |
var x1 = $m_Lcodes_quine_labs_recheck_fuzz_FString$().cross__Lcodes_quine_labs_recheck_fuzz_FString__Lcodes_quine_labs_recheck_fuzz_FString__I__I__T2(t1, t2, pos1, pos2); | |
if (x1 === null) { | |
throw new $c_s_MatchError(x1); | |
} | |
; | |
var s1 = x1._1__O(); | |
var s2 = x1._2__O(); | |
var $$x5 = $m_s_package$().s_package$__f_Seq; | |
var array = [s1, s2]; | |
var this$9 = $$x5.apply__sci_Seq__sc_SeqOps($ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array)).iterator__sc_Iterator(); | |
var f = new $c_sjsr_AnonFunction1(((next$1) => (str$2) => { | |
var str = str$2; | |
return next$1.execute__Lcodes_quine_labs_recheck_fuzz_FString__sc_Iterator(str); | |
})(next)); | |
return new $c_sc_Iterator$$anon$10(this$9, f); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.mutate__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator = function(gen, next) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:218"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:218"); | |
} | |
} | |
; | |
var this$2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_mutators; | |
var n = this$1.length__I(); | |
var i = this$2.s_util_Random__f_self.nextInt__I__I(n); | |
return this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_mutators.apply__I__O(i).apply__O__O__O(gen, next); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.mutateRepeat__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator = function(gen, next) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:234"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:234"); | |
} | |
} | |
; | |
var $$x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$1 = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces; | |
var i = $$x1.between__I__I__I(0, this$1.length__I()); | |
var t = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces.apply__I__O(i).Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_str; | |
if (t.isConstant__Z()) { | |
return $m_s_package$().s_package$__f_Iterator.sc_Iterator$__f_scala$collection$Iterator$$_empty; | |
} | |
; | |
var x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random.between__I__I__I(0, 2); | |
switch (x1) { | |
case 0: { | |
var d = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random.between__I__I__I(-10, 11); | |
var v1 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_n; | |
var a = v1 + d | 0; | |
var s = new $c_Lcodes_quine_labs_recheck_fuzz_FString(a > 1 ? a : 1, t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq); | |
break; | |
} | |
case 1: { | |
var d$2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random.between__I__I__I(2, 8); | |
var v1$1 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_n; | |
var a$1 = Math.imul(v1$1, d$2); | |
var s = new $c_Lcodes_quine_labs_recheck_fuzz_FString(a$1 > 1 ? a$1 : 1, t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq); | |
break; | |
} | |
default: { | |
var s; | |
throw new $c_s_MatchError(x1); | |
} | |
} | |
; | |
return next.execute__Lcodes_quine_labs_recheck_fuzz_FString__sc_Iterator(s); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.mutateInsert__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator = function(gen, next) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:251"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:251"); | |
} | |
} | |
; | |
var this$2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$1 = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces; | |
var n = this$1.length__I(); | |
var i = this$2.s_util_Random__f_self.nextInt__I__I(n); | |
var t = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces.apply__I__O(i).Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_str; | |
var x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random.between__I__I__I(0, 2); | |
switch (x1) { | |
case 0: { | |
var $$x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$3 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz.Lcodes_quine_labs_recheck_fuzz_FuzzProgram__f_alphabet.Lcodes_quine_labs_recheck_unicode_ICharSet__f_pairs; | |
var idx = $$x1.between__I__I__I(0, this$3.length__I()); | |
var c = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz.Lcodes_quine_labs_recheck_fuzz_FuzzProgram__f_alphabet.Lcodes_quine_labs_recheck_unicode_ICharSet__f_pairs.apply__I__O(idx)._1__O().head__Lcodes_quine_labs_recheck_unicode_UChar(); | |
var fc = new $c_Lcodes_quine_labs_recheck_fuzz_FString$Wrap(c); | |
break; | |
} | |
case 1: { | |
if (t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq.isEmpty__Z()) { | |
return $m_s_package$().s_package$__f_Iterator.sc_Iterator$__f_scala$collection$Iterator$$_empty; | |
} | |
; | |
var m = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random.between__I__I__I(0, 10); | |
var $$x2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$4 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var size = $$x2.between__I__I__I(0, this$4.length__I()); | |
var fc = new $c_Lcodes_quine_labs_recheck_fuzz_FString$Repeat(m, size); | |
break; | |
} | |
default: { | |
var fc; | |
throw new $c_s_MatchError(x1); | |
} | |
} | |
; | |
var $$x3 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$5 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var pos = $$x3.between__I__I__I(0, 1 + this$5.length__I() | 0); | |
var s = t.insertAt__I__Lcodes_quine_labs_recheck_fuzz_FString$FChar__Lcodes_quine_labs_recheck_fuzz_FString(pos, fc); | |
return next.execute__Lcodes_quine_labs_recheck_fuzz_FString__sc_Iterator(s); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.mutateInsertPart__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator = function(gen, next) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:273"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:273"); | |
} | |
} | |
; | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_parts.isEmpty__Z()) { | |
return this.mutateInsert__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator(gen, next); | |
} | |
; | |
var this$2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$1 = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces; | |
var n = this$1.length__I(); | |
var i = this$2.s_util_Random__f_self.nextInt__I__I(n); | |
var t = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces.apply__I__O(i).Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_str; | |
var $$x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$3 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_parts; | |
var idx = $$x1.between__I__I__I(0, this$3.length__I()); | |
var this$4 = $m_Lcodes_quine_labs_recheck_unicode_UString$().iterator$extension__T__Z__sc_Iterator(this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_parts.apply__I__O(idx).Lcodes_quine_labs_recheck_unicode_UString__f_asString, this.unicode__Z()); | |
var f = $m_Lcodes_quine_labs_recheck_fuzz_FString$Wrap$(); | |
var this$5 = new $c_sc_Iterator$$anon$9(this$4, f); | |
var part = $m_sci_IndexedSeq$().from__sc_IterableOnce__sci_IndexedSeq(this$5); | |
var x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random.between__I__I__I(0, 2); | |
switch (x1) { | |
case 0: { | |
var fcs = part; | |
break; | |
} | |
case 1: { | |
var m = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random.between__I__I__I(0, 10); | |
var $$x2 = $m_s_package$().s_package$__f_IndexedSeq; | |
var array = [new $c_Lcodes_quine_labs_recheck_fuzz_FString$Repeat(m, part.length__I())]; | |
var this$9 = $$x2.apply__sci_Seq__sc_SeqOps($ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array)); | |
var fcs = this$9.appendedAll__sc_IterableOnce__O(part); | |
break; | |
} | |
default: { | |
var fcs; | |
throw new $c_s_MatchError(x1); | |
} | |
} | |
; | |
var $$x3 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$10 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var pos = $$x3.between__I__I__I(0, 1 + this$10.length__I() | 0); | |
var s = t.replace__I__I__sci_IndexedSeq__Lcodes_quine_labs_recheck_fuzz_FString(pos, 0, fcs); | |
return next.execute__Lcodes_quine_labs_recheck_fuzz_FString__sc_Iterator(s); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.mutateUpdate__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator = function(gen, next) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:295"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:295"); | |
} | |
} | |
; | |
var this$2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$1 = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces; | |
var n = this$1.length__I(); | |
var i = this$2.s_util_Random__f_self.nextInt__I__I(n); | |
var t = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces.apply__I__O(i).Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_str; | |
if (t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq.isEmpty__Z()) { | |
return $m_s_package$().s_package$__f_Iterator.sc_Iterator$__f_scala$collection$Iterator$$_empty; | |
} | |
; | |
var $$x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$3 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var pos = $$x1.between__I__I__I(0, this$3.length__I()); | |
var x1 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq.apply__I__O(pos); | |
if (x1 instanceof $c_Lcodes_quine_labs_recheck_fuzz_FString$Wrap) { | |
var this$5 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$4 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz.Lcodes_quine_labs_recheck_fuzz_FuzzProgram__f_alphabet.Lcodes_quine_labs_recheck_unicode_ICharSet__f_pairs; | |
var n$1 = this$4.length__I(); | |
var k = this$5.s_util_Random__f_self.nextInt__I__I(n$1); | |
var c = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz.Lcodes_quine_labs_recheck_fuzz_FuzzProgram__f_alphabet.Lcodes_quine_labs_recheck_unicode_ICharSet__f_pairs.apply__I__O(k)._1__O().head__Lcodes_quine_labs_recheck_unicode_UChar(); | |
var fc = new $c_Lcodes_quine_labs_recheck_fuzz_FString$Wrap(c); | |
} else { | |
if (!(x1 instanceof $c_Lcodes_quine_labs_recheck_fuzz_FString$Repeat)) { | |
throw new $c_s_MatchError(x1); | |
} | |
; | |
var x4 = x1; | |
var m0 = x4.Lcodes_quine_labs_recheck_fuzz_FString$Repeat__f_m; | |
var size0 = x4.Lcodes_quine_labs_recheck_fuzz_FString$Repeat__f_size; | |
var x1$2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random.between__I__I__I(0, 2); | |
switch (x1$2) { | |
case 0: { | |
var d = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random.between__I__I__I(-10, 11); | |
var m = m0 + d | 0; | |
break; | |
} | |
case 1: { | |
var m = m0 << 1; | |
break; | |
} | |
default: { | |
var m; | |
throw new $c_s_MatchError(x1$2); | |
} | |
} | |
; | |
var x1$3 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random.between__I__I__I(0, 2); | |
switch (x1$3) { | |
case 0: { | |
var $$x2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$6 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var size = $$x2.between__I__I__I(1, 1 + (this$6.length__I() - pos | 0) | 0); | |
break; | |
} | |
case 1: { | |
var size = size0 + this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random.between__I__I__I(-10, 11) | 0; | |
break; | |
} | |
default: { | |
var size; | |
throw new $c_s_MatchError(x1$3); | |
} | |
} | |
; | |
var fc = new $c_Lcodes_quine_labs_recheck_fuzz_FString$Repeat(m, size); | |
} | |
; | |
var s = t.replaceAt__I__Lcodes_quine_labs_recheck_fuzz_FString$FChar__Lcodes_quine_labs_recheck_fuzz_FString(pos, fc); | |
return next.execute__Lcodes_quine_labs_recheck_fuzz_FString__sc_Iterator(s); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.mutateCopy__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator = function(gen, next) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:325"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:325"); | |
} | |
} | |
; | |
var this$2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$1 = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces; | |
var n = this$1.length__I(); | |
var i = this$2.s_util_Random__f_self.nextInt__I__I(n); | |
var t = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces.apply__I__O(i).Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_str; | |
var this$3 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
if (this$3.length__I() < 2) { | |
return $m_s_package$().s_package$__f_Iterator.sc_Iterator$__f_scala$collection$Iterator$$_empty; | |
} | |
; | |
var $$x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$4 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var pos1 = $$x1.between__I__I__I(0, -1 + this$4.length__I() | 0); | |
var $$x2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$5 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var size = $$x2.between__I__I__I(1, 1 + (this$5.length__I() - pos1 | 0) | 0); | |
var part = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq.slice__I__I__O(pos1, pos1 + size | 0); | |
var $$x3 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$6 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var pos2 = $$x3.between__I__I__I(0, 1 + this$6.length__I() | 0); | |
var s = t.replace__I__I__sci_IndexedSeq__Lcodes_quine_labs_recheck_fuzz_FString(pos2, 0, part); | |
return next.execute__Lcodes_quine_labs_recheck_fuzz_FString__sc_Iterator(s); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.mutateDelete__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__sc_Iterator = function(gen, next) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:340"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:340"); | |
} | |
} | |
; | |
var this$2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$1 = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces; | |
var n = this$1.length__I(); | |
var i = this$2.s_util_Random__f_self.nextInt__I__I(n); | |
var t = gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces.apply__I__O(i).Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_str; | |
var this$3 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
if (this$3.length__I() < 2) { | |
return $m_s_package$().s_package$__f_Iterator.sc_Iterator$__f_scala$collection$Iterator$$_empty; | |
} | |
; | |
var $$x1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$4 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var pos = $$x1.between__I__I__I(0, this$4.length__I()); | |
var $$x2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_random; | |
var this$5 = t.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var size = $$x2.between__I__I__I(1, 1 + (this$5.length__I() - pos | 0) | 0); | |
var s = t.delete__I__I__Lcodes_quine_labs_recheck_fuzz_FString(pos, size); | |
return next.execute__Lcodes_quine_labs_recheck_fuzz_FString__sc_Iterator(s); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.tryAttack__Lcodes_quine_labs_recheck_fuzz_FString__sc_Iterator = function(str) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:353"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:353"); | |
} | |
} | |
; | |
var exponential = this.tryAttackExponential__Lcodes_quine_labs_recheck_fuzz_FString__s_Option(str).iterator__sc_Iterator(); | |
var x = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxDegree; | |
var isEmpty = x > 2; | |
var isEmpty$1 = x < 2; | |
var this$13 = new $c_sci_RangeIterator(x, -1, 2, isEmpty$1); | |
var f = new $c_sjsr_AnonFunction1(((this$12, str$1) => (x$9$2) => { | |
var x$9 = x$9$2 | 0; | |
return this$12.tryAttackPolynomial__Lcodes_quine_labs_recheck_fuzz_FString__I__s_Option(str$1, x$9); | |
})(this, str)); | |
var polynomials = new $c_sc_Iterator$$anon$10(this$13, f); | |
var xs = new $c_sjsr_AnonFunction0(((polynomials$1) => () => polynomials$1)(polynomials)); | |
return exponential.concat__F0__sc_Iterator(xs); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.tryAttackExponential__Lcodes_quine_labs_recheck_fuzz_FString__s_Option = function(str) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:361"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:361"); | |
} | |
} | |
; | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("fuzz: attack (exponential)"); | |
} | |
; | |
var n = $m_Lcodes_quine_labs_recheck_util_RepeatUtil$().exponential__I__I__I__I__I(this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_attackLimit, str.fixedSize__I(), str.repeatSize__I(), this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxAttackStringSize); | |
var seq = str.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var attack = new $c_Lcodes_quine_labs_recheck_fuzz_FString(n, seq); | |
var this$1 = this.tryAttackExecute__Lcodes_quine_labs_recheck_fuzz_FString__s_Option(attack); | |
if (this$1.isEmpty__Z()) { | |
return $m_s_None$(); | |
} else { | |
var arg1 = this$1.get__O(); | |
var x0$1 = arg1; | |
if (x0$1 !== null) { | |
var pattern = x0$1._1__O(); | |
var hotspot = x0$1._2__O(); | |
var $$x1 = new $c_T3(new $c_Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Exponential(true), pattern, hotspot); | |
} else { | |
var $$x1; | |
throw new $c_s_MatchError(x0$1); | |
} | |
; | |
return new $c_s_Some($$x1); | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.tryAttackPolynomial__Lcodes_quine_labs_recheck_fuzz_FString__I__s_Option = function(str, degree) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:369"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:369"); | |
} | |
} | |
; | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_logger.apply__T__V("fuzz: attack (polynomial: " + degree + ")"); | |
} | |
; | |
var n = $m_Lcodes_quine_labs_recheck_util_RepeatUtil$().polynomial__I__I__I__I__I__I(degree, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_attackLimit, str.fixedSize__I(), str.repeatSize__I(), this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxAttackStringSize); | |
var seq = str.Lcodes_quine_labs_recheck_fuzz_FString__f_seq; | |
var attack = new $c_Lcodes_quine_labs_recheck_fuzz_FString(n, seq); | |
var this$1 = this.tryAttackExecute__Lcodes_quine_labs_recheck_fuzz_FString__s_Option(attack); | |
if (this$1.isEmpty__Z()) { | |
return $m_s_None$(); | |
} else { | |
var arg1 = this$1.get__O(); | |
var x0$1 = arg1; | |
if (x0$1 !== null) { | |
var pattern = x0$1._1__O(); | |
var hotspot = x0$1._2__O(); | |
var $$x1 = new $c_T3(new $c_Lcodes_quine_labs_recheck_diagnostics_AttackComplexity$Polynomial(degree, true), pattern, hotspot); | |
} else { | |
var $$x1; | |
throw new $c_s_MatchError(x0$1); | |
} | |
; | |
return new $c_s_Some($$x1); | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.tryAttackExecute__Lcodes_quine_labs_recheck_fuzz_FString__s_Option = function(str) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:379"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:379"); | |
} | |
} | |
; | |
var input = str.toUString__T(); | |
if ((input.length | 0) <= this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxAttackStringSize) { | |
var usesAcceleration = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz.usesAcceleration__Lcodes_quine_labs_recheck_common_AccelerationMode__Z(this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_accelerationMode); | |
var x$1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_attackLimit; | |
var opts = new $c_Lcodes_quine_labs_recheck_vm_Interpreter$Options(x$1, usesAcceleration, false, false, false, true); | |
var result = $m_Lcodes_quine_labs_recheck_vm_Interpreter$().runWithTimeout__Lcodes_quine_labs_recheck_vm_Program__T__I__Lcodes_quine_labs_recheck_vm_Interpreter$Options__s_concurrent_duration_Duration__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_vm_Interpreter$Result(this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz.Lcodes_quine_labs_recheck_fuzz_FuzzProgram__f_program, input, 0, opts, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_attackTimeout, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx); | |
var x = result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_status; | |
var x$7 = $m_Lcodes_quine_labs_recheck_vm_Interpreter$Status$Limit$(); | |
if (x !== null && x === x$7) { | |
var $$x1 = true; | |
} else { | |
var x$8 = result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_status; | |
var x$9 = $m_Lcodes_quine_labs_recheck_vm_Interpreter$Status$Timeout$(); | |
var $$x1 = x$8 !== null && x$8 === x$9; | |
} | |
; | |
if ($$x1) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
var $$x2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_logger; | |
var x$2 = "|fuzz: attack succeeded (status: " + result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_status + ")\n | string: " + str; | |
$$x2.apply__T__V($m_sc_StringOps$().stripMargin$extension__T__C__T(x$2, 124)); | |
} | |
; | |
return new $c_s_Some($ct_T2__O__O__(new $c_T2(), str.toAttackPattern__Lcodes_quine_labs_recheck_diagnostics_AttackPattern(), $m_Lcodes_quine_labs_recheck_diagnostics_Hotspot$().build__sci_Map__D__Lcodes_quine_labs_recheck_diagnostics_Hotspot(result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_heatmap, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_heatRatio))); | |
} | |
} | |
; | |
return $m_s_None$(); | |
}; | |
var $d_Lcodes_quine_labs_recheck_fuzz_FuzzChecker = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_fuzz_FuzzChecker: 0 | |
}, false, "codes.quine.labs.recheck.fuzz.FuzzChecker", { | |
Lcodes_quine_labs_recheck_fuzz_FuzzChecker: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker.prototype.$classData = $d_Lcodes_quine_labs_recheck_fuzz_FuzzChecker; | |
function $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$() { | |
} | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$.prototype.constructor = $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$; | |
function $h_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$() { | |
} | |
$h_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$.prototype = $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$.prototype; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$.prototype.check__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_fuzz_FuzzProgram__s_util_Random__Lcodes_quine_labs_recheck_common_Seeder__I__I__s_concurrent_duration_Duration__I__s_concurrent_duration_Duration__I__I__s_concurrent_duration_Duration__I__I__I__I__I__I__I__D__Lcodes_quine_labs_recheck_common_AccelerationMode__Lcodes_quine_labs_recheck_common_Context__sc_Iterator = function(pattern, fuzz, random, seeder, maxSimpleRepeatCount, seedingLimit, seedingTimeout, incubationLimit, incubationTimeout, maxGeneStringSize, attackLimit, attackTimeout, crossoverSize, mutationSize, maxAttackStringSize, maxInitialGenerationSize, maxGenerationSize, maxIteration, maxDegree, heatRatio, accelerationMode, ctx) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:54"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/FuzzChecker.scala:54"); | |
} | |
} | |
; | |
return new $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker(pattern, fuzz, random, seeder, maxSimpleRepeatCount, seedingLimit, seedingTimeout, incubationLimit, incubationTimeout, maxGeneStringSize, attackLimit, attackTimeout, crossoverSize, mutationSize, maxAttackStringSize, maxInitialGenerationSize, maxGenerationSize, maxIteration, maxDegree, heatRatio, accelerationMode, ctx).check__sc_Iterator(); | |
}; | |
var $d_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$ = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_fuzz_FuzzChecker$: 0 | |
}, false, "codes.quine.labs.recheck.fuzz.FuzzChecker$", { | |
Lcodes_quine_labs_recheck_fuzz_FuzzChecker$: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$.prototype.$classData = $d_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$; | |
var $n_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$; | |
function $m_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$() { | |
if (!$n_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$) { | |
$n_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$ = new $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$(); | |
} | |
; | |
return $n_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$; | |
} | |
function $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population(outer, minRate, set, visited) { | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_minRate = 0; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_set = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_visited = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer = null; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_minRate = minRate; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_set = set; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_visited = visited; | |
if (outer === null) { | |
throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(null); | |
} else { | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer = outer; | |
} | |
} | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population.prototype.constructor = $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population; | |
function $h_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population() { | |
} | |
$h_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population.prototype = $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population.prototype; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population.prototype.execute__Lcodes_quine_labs_recheck_fuzz_FString__sc_Iterator = function(str) { | |
if (str.countRepeat__I() >= this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxDegree) { | |
return $m_s_package$().s_package$__f_Iterator.sc_Iterator$__f_scala$collection$Iterator$$_empty; | |
} | |
; | |
var input = str.toUString__T(); | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_inputs.contains__O__Z(new $c_Lcodes_quine_labs_recheck_unicode_UString(input)) || (input.length | 0) >= this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxGeneStringSize) { | |
return $m_s_package$().s_package$__f_Iterator.sc_Iterator$__f_scala$collection$Iterator$$_empty; | |
} | |
; | |
var x$1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_incubationLimit; | |
var x$2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz.usesAcceleration__Lcodes_quine_labs_recheck_common_AccelerationMode__Z(this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_accelerationMode); | |
var opts = new $c_Lcodes_quine_labs_recheck_vm_Interpreter$Options(x$1, x$2, false, false, true, false); | |
var $$x1 = $m_Lcodes_quine_labs_recheck_vm_Interpreter$(); | |
var this$2 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer; | |
var result = $$x1.runWithTimeout__Lcodes_quine_labs_recheck_vm_Program__T__I__Lcodes_quine_labs_recheck_vm_Interpreter$Options__s_concurrent_duration_Duration__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_vm_Interpreter$Result(this$2.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_fuzz.Lcodes_quine_labs_recheck_fuzz_FuzzProgram__f_program, input, 0, opts, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_incubationTimeout, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx); | |
this.add__Lcodes_quine_labs_recheck_fuzz_FString__T__Lcodes_quine_labs_recheck_vm_Interpreter$Result__V(str, input, result); | |
var x = result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_status; | |
var x$7 = $m_Lcodes_quine_labs_recheck_vm_Interpreter$Status$Limit$(); | |
if (x !== null && x === x$7) { | |
var $$x2 = true; | |
} else { | |
var x$8 = result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_status; | |
var x$9 = $m_Lcodes_quine_labs_recheck_vm_Interpreter$Status$Timeout$(); | |
var $$x2 = x$8 !== null && x$8 === x$9; | |
} | |
; | |
if ($$x2) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_hasLogger) { | |
var $$x3 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_logger; | |
var x$3 = "|fuzz: attack start (status: " + result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_status + ")\n | string: " + str; | |
$$x3.apply__T__V($m_sc_StringOps$().stripMargin$extension__T__C__T(x$3, 124)); | |
} | |
; | |
return this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.tryAttack__Lcodes_quine_labs_recheck_fuzz_FString__sc_Iterator(str); | |
} | |
; | |
return $m_s_package$().s_package$__f_Iterator.sc_Iterator$__f_scala$collection$Iterator$$_empty; | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population.prototype.add__Lcodes_quine_labs_recheck_fuzz_FString__T__Lcodes_quine_labs_recheck_vm_Interpreter$Result__V = function(str, input, result) { | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_inputs.add__O__Z(new $c_Lcodes_quine_labs_recheck_unicode_UString(input)); | |
var rate = input === "" ? 0 : result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_steps / (input.length | 0); | |
var coverage = result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_coverage; | |
var trace = new $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace(str, rate, result.Lcodes_quine_labs_recheck_vm_Interpreter$Result__f_steps, coverage); | |
if (this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_set.contains__O__Z(trace)) { | |
return void 0; | |
} | |
; | |
if (rate >= this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_minRate || !coverage.subsetOf__sc_Set__Z(this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_visited)) { | |
var b = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_minRate; | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_minRate = +Math.min(rate, b); | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_set.add__O__Z(trace); | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_visited.addAll__sc_IterableOnce__scm_Growable(coverage); | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population.prototype.toGeneration__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation = function() { | |
var this$1 = this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_set; | |
var this$3 = $m_sci_IndexedSeq$().from__sc_IterableOnce__sci_IndexedSeq(this$1); | |
var f = new $c_sjsr_AnonFunction1((x$10$2) => { | |
var x$10 = x$10$2; | |
return -x$10.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_rate; | |
}); | |
var ord = $m_s_math_Ordering$DeprecatedDoubleOrdering$(); | |
var traces = $f_sc_SeqOps__sortBy__F1__s_math_Ordering__O(this$3, f, ord).slice__I__I__O(0, this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population__f_$outer.Lcodes_quine_labs_recheck_fuzz_FuzzChecker__f_maxGenerationSize); | |
var this$4 = traces.map__F1__O(new $c_sjsr_AnonFunction1((x$11$2) => { | |
var x$11 = x$11$2; | |
return x$11.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_rate; | |
})); | |
var ord$1 = $m_s_math_Ordering$DeprecatedDoubleOrdering$(); | |
var this$5 = $f_sc_IterableOnceOps__minOption__s_math_Ordering__s_Option(this$4, ord$1); | |
var newMinRate = +(this$5.isEmpty__Z() ? 0 : this$5.get__O()); | |
var this$6 = traces.iterator__sc_Iterator(); | |
var f$1 = new $c_sjsr_AnonFunction1((x$12$2) => { | |
var x$12 = x$12$2; | |
return x$12.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Trace__f_coverage; | |
}); | |
var this$7 = new $c_sc_Iterator$$anon$10(this$6, f$1); | |
var newCovered = $m_sci_Set$().from__sc_IterableOnce__sci_Set(this$7); | |
return new $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation(newMinRate, traces, newCovered); | |
}; | |
var $d_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population: 0 | |
}, false, "codes.quine.labs.recheck.fuzz.FuzzChecker$Population", { | |
Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population.prototype.$classData = $d_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population; | |
function $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$(outer) { | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$__f_$outer = null; | |
if (outer === null) { | |
throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(null); | |
} else { | |
this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$__f_$outer = outer; | |
} | |
} | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$.prototype.constructor = $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$; | |
function $h_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$() { | |
} | |
$h_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$.prototype = $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$.prototype; | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$.prototype.from__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population = function(gen) { | |
return new $c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population(this.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$__f_$outer, gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_minRate, $m_scm_Set$().from__sc_IterableOnce__O(gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_traces), $m_scm_Set$().from__sc_IterableOnce__O(gen.Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Generation__f_covered)); | |
}; | |
var $d_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$ = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$: 0 | |
}, false, "codes.quine.labs.recheck.fuzz.FuzzChecker$Population$", { | |
Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$.prototype.$classData = $d_Lcodes_quine_labs_recheck_fuzz_FuzzChecker$Population$; | |
function $c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder(alphabet, stateSet, initSet, acceptSet, graph, ctx) { | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_alphabet = null; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_stateSet = null; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_initSet = null; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_acceptSet = null; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_graph = null; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx = null; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_reverseGraph = null; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_outsMap = null; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_insMap = null; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_charToInsMap = null; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_alphabet = alphabet; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_stateSet = stateSet; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_initSet = initSet; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_acceptSet = acceptSet; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_graph = graph; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx = ctx; | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_reverseGraph = graph.reverse__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_data_Graph(ctx); | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:108"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:108"); | |
} | |
} | |
; | |
var this$7 = graph.vertices__sci_Set().iterator__sc_Iterator(); | |
var f$1 = new $c_sjsr_AnonFunction1(((this$1) => (q$2) => { | |
var this$4 = this$1.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_graph.Lcodes_quine_labs_recheck_data_Graph__f_neighbors.apply__O__O(q$2); | |
var key = new $c_sjsr_AnonFunction1((x$6$2) => { | |
var x$6 = x$6$2; | |
return x$6._1__O(); | |
}); | |
var f = new $c_sjsr_AnonFunction1((x$7$2) => { | |
var x$7 = x$7$2; | |
return x$7._2__O(); | |
}); | |
var y = $f_sc_IterableOps__groupMap__F1__F1__sci_Map(this$4, key, f).filter__F1__O(new $c_sjsr_AnonFunction1((x$8$2) => { | |
var x$8 = x$8$2; | |
var this$5 = x$8._2__O(); | |
return this$5.length__I() >= 2; | |
})); | |
return $ct_T2__O__O__(new $c_T2(), q$2, y); | |
})(this)); | |
var this$9 = new $c_sc_Iterator$$anon$9(this$7, f$1); | |
$m_s_$less$colon$less$(); | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_outsMap = $m_sci_Map$().from__sc_IterableOnce__sci_Map(this$9); | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:113"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:113"); | |
} | |
} | |
; | |
var this$14 = this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_reverseGraph.vertices__sci_Set().iterator__sc_Iterator(); | |
var f$3 = new $c_sjsr_AnonFunction1(((this$2$2) => (q$3$2) => { | |
var this$12 = this$2$2.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_reverseGraph.Lcodes_quine_labs_recheck_data_Graph__f_neighbors.apply__O__O(q$3$2); | |
var key$1 = new $c_sjsr_AnonFunction1((x$9$2) => { | |
var x$9 = x$9$2; | |
return x$9._1__O(); | |
}); | |
var f$2 = new $c_sjsr_AnonFunction1((x$10$2) => { | |
var x$10 = x$10$2; | |
return x$10._2__O(); | |
}); | |
var y$1 = $f_sc_IterableOps__groupMap__F1__F1__sci_Map(this$12, key$1, f$2); | |
return $ct_T2__O__O__(new $c_T2(), q$3$2, y$1); | |
})(this)); | |
var this$16 = new $c_sc_Iterator$$anon$9(this$14, f$3); | |
$m_s_$less$colon$less$(); | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_insMap = $m_sci_Map$().from__sc_IterableOnce__sci_Map(this$16); | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:118"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:118"); | |
} | |
} | |
; | |
var this$17 = this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_reverseGraph.edges__sci_IndexedSeq(); | |
var key$2 = new $c_sjsr_AnonFunction1((x$11$2) => { | |
var x$11 = x$11$2; | |
return x$11.T3__f__2; | |
}); | |
var f$4 = new $c_sjsr_AnonFunction1((x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (x0$1 !== null) { | |
var q2 = x0$1.T3__f__1; | |
var q1 = x0$1.T3__f__3; | |
return $ct_T2__O__O__(new $c_T2(), q2, q1); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
}); | |
var this$18 = $f_sc_IterableOps__groupMap__F1__F1__sci_Map(this$17, key$2, f$4); | |
var this$20 = new $c_sc_MapView$Id(this$18); | |
var f$6 = new $c_sjsr_AnonFunction1((x$12$2) => { | |
var x$12 = x$12$2; | |
var key$3 = new $c_sjsr_AnonFunction1((x$13$2) => { | |
var x$13 = x$13$2; | |
return x$13._1__O(); | |
}); | |
var f$5 = new $c_sjsr_AnonFunction1((x$14$2) => { | |
var x$14 = x$14$2; | |
return x$14._2__O(); | |
}); | |
return $f_sc_IterableOps__groupMap__F1__F1__sci_Map(x$12, key$3, f$5); | |
}); | |
var this$22 = new $c_sc_MapView$MapValues(this$20, f$6); | |
$m_s_$less$colon$less$(); | |
this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_charToInsMap = $m_sci_Map$().from__sc_IterableOnce__sci_Map(this$22); | |
} | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype.constructor = $c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder; | |
function $h_Lcodes_quine_labs_recheck_fuzz_StaticSeeder() { | |
} | |
$h_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype = $c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype; | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype.seed__I__I__I__s_$eq$colon$eq__sci_Set = function(maxInitialGenerationSize, limit, maxSize, ev) { | |
var this$3 = this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_outsMap.iterator__sc_Iterator(); | |
var p = new $c_sjsr_AnonFunction1((x$15$2) => { | |
var x$15 = x$15$2; | |
var this$2 = x$15._2__O(); | |
return !this$2.isEmpty__Z(); | |
}); | |
var this$11 = new $c_sc_Iterator$$anon$6(this$3, p, false); | |
var f$2 = new $c_sjsr_AnonFunction1(((this$2$1, limit$1, maxSize$1) => (x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (x0$1 !== null) { | |
var q0 = x0$1._1__O(); | |
var this$7 = this$2$1.findTinyIDA__O__sc_Iterator(q0); | |
var f = new $c_sjsr_AnonFunction1(((limit$1$1, maxSize$1$1) => (x$16$2) => { | |
var x$16 = x$16$2; | |
var w1 = x$16.T3__f__1.map__F1__O(new $c_sjsr_AnonFunction1((u$2) => new $c_Lcodes_quine_labs_recheck_fuzz_FString$Wrap(u$2))).toIndexedSeq__sci_IndexedSeq(); | |
var w2 = x$16.T3__f__2.map__F1__O(new $c_sjsr_AnonFunction1((u$3$2) => new $c_Lcodes_quine_labs_recheck_fuzz_FString$Wrap(u$3$2))).toIndexedSeq__sci_IndexedSeq(); | |
var w3 = x$16.T3__f__3.map__F1__O(new $c_sjsr_AnonFunction1((u$4$2) => new $c_Lcodes_quine_labs_recheck_fuzz_FString$Wrap(u$4$2))).toIndexedSeq__sci_IndexedSeq(); | |
var v1 = w1.length__I() + w3.length__I() | 0; | |
var v2 = w2.length__I(); | |
var n = $m_Lcodes_quine_labs_recheck_util_RepeatUtil$().polynomial__I__I__I__I__I__I(2, limit$1$1, v1, v2, maxSize$1$1); | |
var rassoc$3 = new $c_Lcodes_quine_labs_recheck_fuzz_FString$Repeat(0, w2.length__I()); | |
var suffix = w2.prepended__O__O(rassoc$3); | |
var this$6 = w1.appendedAll__sc_IterableOnce__O(suffix); | |
return new $c_Lcodes_quine_labs_recheck_fuzz_FString(n, this$6.concat__sc_IterableOnce__O(w3)); | |
})(limit$1, maxSize$1)); | |
var idas = new $c_sc_Iterator$$anon$9(this$7, f); | |
var this$10 = this$2$1.findTinyEDA__O__sc_Iterator(q0); | |
var f$1 = new $c_sjsr_AnonFunction1(((limit$1$2, maxSize$1$2) => (x$19$2) => { | |
var x$19 = x$19$2; | |
var w1$1 = x$19.T3__f__1.map__F1__O(new $c_sjsr_AnonFunction1((u$2$1) => new $c_Lcodes_quine_labs_recheck_fuzz_FString$Wrap(u$2$1))).toIndexedSeq__sci_IndexedSeq(); | |
var w2$1 = x$19.T3__f__2.map__F1__O(new $c_sjsr_AnonFunction1((u$3$2$1) => new $c_Lcodes_quine_labs_recheck_fuzz_FString$Wrap(u$3$2$1))).toIndexedSeq__sci_IndexedSeq(); | |
var w3$1 = x$19.T3__f__3.map__F1__O(new $c_sjsr_AnonFunction1((u$4$2$1) => new $c_Lcodes_quine_labs_recheck_fuzz_FString$Wrap(u$4$2$1))).toIndexedSeq__sci_IndexedSeq(); | |
var v1$1 = w1$1.length__I() + w3$1.length__I() | 0; | |
var v2$1 = w2$1.length__I(); | |
var n$1 = $m_Lcodes_quine_labs_recheck_util_RepeatUtil$().exponential__I__I__I__I__I(limit$1$2, v1$1, v2$1, maxSize$1$2); | |
var rassoc$3$1 = new $c_Lcodes_quine_labs_recheck_fuzz_FString$Repeat(0, w2$1.length__I()); | |
var suffix$1 = w2$1.prepended__O__O(rassoc$3$1); | |
var this$9 = w1$1.appendedAll__sc_IterableOnce__O(suffix$1); | |
return new $c_Lcodes_quine_labs_recheck_fuzz_FString(n$1, this$9.concat__sc_IterableOnce__O(w3$1)); | |
})(limit$1, maxSize$1)); | |
var edas = new $c_sc_Iterator$$anon$9(this$10, f$1); | |
var xs = new $c_sjsr_AnonFunction0(((edas$1) => () => edas$1)(edas)); | |
return $f_sc_Iterator__concat__F0__sc_Iterator(idas, xs); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
})(this, limit, maxSize)); | |
var this$12 = new $c_sc_Iterator$$anon$10(this$11, f$2); | |
var this$13 = $f_sc_Iterator__take__I__sc_Iterator(this$12, maxInitialGenerationSize); | |
return $m_sci_Set$().from__sc_IterableOnce__sci_Set(this$13); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype.findTinyEDA__O__sc_Iterator = function(q0) { | |
var this$13 = this.path__sci_Set__O__s_Option(this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_initSet, q0).iterator__sc_Iterator(); | |
var f$4 = new $c_sjsr_AnonFunction1(((this$1, q0$1) => (w1$2) => { | |
var w1 = w1$2; | |
var this$12 = this$1.deadPath__O__s_Option(q0$1).iterator__sc_Iterator(); | |
var f$3 = new $c_sjsr_AnonFunction1(((this$2, q0$1$1, w1$1) => (w3$2) => { | |
var w3 = w3$2; | |
var this$11 = this$2.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_insMap.apply__O__O(q0$1$1).filter__F1__O(new $c_sjsr_AnonFunction1((x$22$2) => { | |
var x$22 = x$22$2; | |
var this$4 = x$22._2__O(); | |
return this$4.length__I() >= 2; | |
})).iterator__sc_Iterator(); | |
var f$2 = new $c_sjsr_AnonFunction1(((this$2$1, q0$1$2, w1$1$1, w3$1) => (x$24$2) => { | |
var x$24 = x$24$2; | |
if (x$24 !== null) { | |
var b = x$24._1__O(); | |
var q2s = x$24._2__O(); | |
return q2s.flatMap__F1__O(new $c_sjsr_AnonFunction1(((this$5, q0$1$3, b$1, w1$1$2, w3$1$1) => (q2$2) => { | |
var this$10 = this$5.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_outsMap.apply__O__O(q0$1$3).iterator__sc_Iterator(); | |
var f$1 = new $c_sjsr_AnonFunction1(((this$6, q0$1$4, q2, b$1$1, w1$1$3, w3$1$2) => (x$23$2) => { | |
var x$23 = x$23$2; | |
if (x$23 !== null) { | |
var a = x$23._1__O(); | |
var q1s = x$23._2__O(); | |
return q1s.flatMap__F1__O(new $c_sjsr_AnonFunction1(((this$7, q0$1$5, a$1, q2$1, b$1$2, w1$1$4, w3$1$3) => (q1$2) => { | |
var this$9 = this$7.loopPath__O__O__O__O__O__s_Option(q0$1$5, a$1, q1$2, q2$1, b$1$2).iterator__sc_Iterator(); | |
var f = new $c_sjsr_AnonFunction1(((this$8, w1$1$5, w3$1$4) => (w2$2) => { | |
var w2 = w2$2; | |
if (this$8.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$8.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this$8.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this$8.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this$8.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$8.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:148"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:148"); | |
} | |
} | |
; | |
return new $c_T3(w1$1$5, w2, w3$1$4); | |
})(this$7, w1$1$4, w3$1$3)); | |
return new $c_sc_Iterator$$anon$9(this$9, f); | |
})(this$6, q0$1$4, a, q2, b$1$1, w1$1$3, w3$1$2))); | |
} else { | |
throw new $c_s_MatchError(x$23); | |
} | |
})(this$5, q0$1$3, q2$2, b$1, w1$1$2, w3$1$1)); | |
return new $c_sc_Iterator$$anon$10(this$10, f$1); | |
})(this$2$1, q0$1$2, b, w1$1$1, w3$1))); | |
} else { | |
throw new $c_s_MatchError(x$24); | |
} | |
})(this$2, q0$1$1, w1$1, w3)); | |
return new $c_sc_Iterator$$anon$10(this$11, f$2); | |
})(this$1, q0$1, w1)); | |
return new $c_sc_Iterator$$anon$10(this$12, f$3); | |
})(this, q0)); | |
return new $c_sc_Iterator$$anon$10(this$13, f$4); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype.findTinyIDA__O__sc_Iterator = function(q0) { | |
var this$14 = this.path__sci_Set__O__s_Option(this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_initSet, q0).iterator__sc_Iterator(); | |
var f$5 = new $c_sjsr_AnonFunction1(((this$1, q0$1) => (w1$2) => { | |
var w1 = w1$2; | |
var this$13 = this$1.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_outsMap.apply__O__O(q0$1).iterator__sc_Iterator(); | |
var f$4 = new $c_sjsr_AnonFunction1(((this$2, q0$2, w1$1) => (x$29$2) => { | |
var x$29 = x$29$2; | |
if (x$29 !== null) { | |
var a = x$29._1__O(); | |
var q1s = x$29._2__O(); | |
var this$12 = this$2.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_insMap.apply__O__O(q0$2).iterator__sc_Iterator(); | |
var f$3 = new $c_sjsr_AnonFunction1(((this$3, a$1, q0$2$1, q1s$1, w1$2$1) => (x$28$2) => { | |
var x$28 = x$28$2; | |
if (x$28 !== null) { | |
var b = x$28._1__O(); | |
var this$6 = this$3.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_charToInsMap.apply__O__O(b).iterator__sc_Iterator(); | |
var p = new $c_sjsr_AnonFunction1(((this$4, a$2) => (x$26$2) => { | |
var x$26 = x$26$2; | |
if (x$26 !== null) { | |
var q3 = x$26._1__O(); | |
return this$4.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_graph.Lcodes_quine_labs_recheck_data_Graph__f_neighbors.apply__O__O(q3).exists__F1__Z(new $c_sjsr_AnonFunction1(((a$2$1) => (x$25$2) => { | |
var x$25 = x$25$2; | |
var x = x$25._1__O(); | |
return $m_sr_BoxesRunTime$().equals__O__O__Z(x, a$2$1); | |
})(a$2))); | |
} else { | |
throw new $c_s_MatchError(x$26); | |
} | |
})(this$3, a$1)); | |
var this$11 = new $c_sc_Iterator$$anon$6(this$6, p, false); | |
var f$2 = new $c_sjsr_AnonFunction1(((this$2$1, q0$2$2, a$2$2, q1s$1$1, b$1, w1$2$2) => (x$27$2) => { | |
var x$27 = x$27$2; | |
if (x$27 !== null) { | |
var q3$1 = x$27._1__O(); | |
var q2s = x$27._2__O(); | |
var this$10 = this$2$1.middlePath__O__O__sci_Set__sci_Set__O__O__s_Option(q0$2$2, a$2$2, $m_sci_Set$().from__sc_IterableOnce__sci_Set(q1s$1$1), $m_sci_Set$().from__sc_IterableOnce__sci_Set(q2s), b$1, q3$1).iterator__sc_Iterator(); | |
var f$1 = new $c_sjsr_AnonFunction1(((this$7, q3$2, w1$2$3) => (w2$2) => { | |
var w2 = w2$2; | |
var this$9 = this$7.deadPath__O__s_Option(q3$2).iterator__sc_Iterator(); | |
var f = new $c_sjsr_AnonFunction1(((this$8, w1$2$4, w2$1) => (w3$2) => { | |
var w3 = w3$2; | |
if (this$8.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$8.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this$8.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this$8.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this$8.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this$8.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:160"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:160"); | |
} | |
} | |
; | |
return new $c_T3(w1$2$4, w2$1, w3); | |
})(this$7, w1$2$3, w2)); | |
return new $c_sc_Iterator$$anon$9(this$9, f); | |
})(this$2$1, q3$1, w1$2$2)); | |
return new $c_sc_Iterator$$anon$10(this$10, f$1); | |
} else { | |
throw new $c_s_MatchError(x$27); | |
} | |
})(this$3, q0$2$1, a$1, q1s$1, b, w1$2$1)); | |
return new $c_sc_Iterator$$anon$10(this$11, f$2); | |
} else { | |
throw new $c_s_MatchError(x$28); | |
} | |
})(this$2, a, q0$2, q1s, w1$1)); | |
return new $c_sc_Iterator$$anon$10(this$12, f$3); | |
} else { | |
throw new $c_s_MatchError(x$29); | |
} | |
})(this$1, q0$1, w1)); | |
return new $c_sc_Iterator$$anon$10(this$13, f$4); | |
})(this, q0)); | |
return new $c_sc_Iterator$$anon$10(this$14, f$5); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype.path__sci_Set__O__s_Option = function(q0s, q1) { | |
var this$1 = this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_graph.path__sci_Set__O__Lcodes_quine_labs_recheck_common_Context__s_Option(q0s, q1, this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx); | |
if (this$1.isEmpty__Z()) { | |
return $m_s_None$(); | |
} else { | |
var arg1 = this$1.get__O(); | |
var x$30 = arg1; | |
return new $c_s_Some(x$30._1__O().map__F1__O(new $c_sjsr_AnonFunction1((x$31$2) => { | |
var x$31 = x$31$2; | |
return x$31._2__O(); | |
}))); | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype.path__sci_Set__sci_Set__s_Option = function(q0s, q1s) { | |
var this$1 = this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_graph.path__sci_Set__sci_Set__Lcodes_quine_labs_recheck_common_Context__s_Option(q0s, q1s, this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx); | |
if (this$1.isEmpty__Z()) { | |
return $m_s_None$(); | |
} else { | |
var arg1 = this$1.get__O(); | |
var x$32 = arg1; | |
return new $c_s_Some(x$32._1__O().map__F1__O(new $c_sjsr_AnonFunction1((x$33$2) => { | |
var x$33 = x$33$2; | |
return x$33._2__O(); | |
}))); | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype.loopPath__O__O__O__O__O__s_Option = function(q0, a, q1, q2, b) { | |
if ($m_sr_BoxesRunTime$().equals__O__O__Z(a, b) && $m_sr_BoxesRunTime$().equals__O__O__Z(q0, q1) && $m_sr_BoxesRunTime$().equals__O__O__Z(q0, q2)) { | |
var $$x1 = $m_s_package$().s_package$__f_Seq; | |
var array = [a]; | |
return new $c_s_Some($$x1.apply__sci_Seq__sc_SeqOps($ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array))); | |
} else { | |
var this$7 = $m_s_Predef$().s_Predef$__f_Set; | |
var array$1 = [q1]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
var this$8 = this.path__sci_Set__O__s_Option(this$7.from__sc_IterableOnce__sci_Set(elems), q2); | |
if (this$8.isEmpty__Z()) { | |
return $m_s_None$(); | |
} else { | |
var arg1 = this$8.get__O(); | |
var w = arg1; | |
var this$9 = w.prepended__O__O(a); | |
return new $c_s_Some(this$9.appended__O__O(b)); | |
} | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype.middlePath__O__O__sci_Set__sci_Set__O__O__s_Option = function(q0, a, q1s, q2s, b, q3) { | |
if ($m_sr_BoxesRunTime$().equals__O__O__Z(a, b) && q1s.contains__O__Z(q3) && q2s.contains__O__Z(q0)) { | |
var $$x1 = $m_s_package$().s_package$__f_Seq; | |
var array = [a]; | |
return new $c_s_Some($$x1.apply__sci_Seq__sc_SeqOps($ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array))); | |
} else { | |
var this$4 = this.path__sci_Set__sci_Set__s_Option(q1s, q2s); | |
if (this$4.isEmpty__Z()) { | |
return $m_s_None$(); | |
} else { | |
var arg1 = this$4.get__O(); | |
var w = arg1; | |
var this$5 = w.prepended__O__O(a); | |
return new $c_s_Some(this$5.appended__O__O(b)); | |
} | |
} | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype.deadPath__O__s_Option = function(q) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:182"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:182"); | |
} | |
} | |
; | |
var $$x1 = this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_alphabet; | |
var this$2 = this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_graph.Lcodes_quine_labs_recheck_data_Graph__f_neighbors.apply__O__O(q).map__F1__O(new $c_sjsr_AnonFunction1((x$34$2) => { | |
var x$34 = x$34$2; | |
return x$34._1__O(); | |
})); | |
var this$3 = $$x1.diff__sc_Set__sci_SetOps($m_sci_Set$().from__sc_IterableOnce__sci_Set(this$2)); | |
var x1 = $f_sc_IterableOps__headOption__s_Option(this$3); | |
if (x1 instanceof $c_s_Some) { | |
var x2 = x1; | |
var c = x2.s_Some__f_value; | |
var $$x2 = $m_s_package$().s_package$__f_Seq; | |
var array = [c]; | |
return new $c_s_Some($$x2.apply__sci_Seq__sc_SeqOps($ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array))); | |
} else { | |
var x = $m_s_None$(); | |
if (x === x1) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:185"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:185"); | |
} | |
} | |
; | |
var this$7 = this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_reverseGraph.path__sci_Set__O__Lcodes_quine_labs_recheck_common_Context__s_Option(this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_stateSet.diff__sc_Set__sci_SetOps(this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_acceptSet), q, this.Lcodes_quine_labs_recheck_fuzz_StaticSeeder__f_ctx); | |
if (this$7.isEmpty__Z()) { | |
return $m_s_None$(); | |
} else { | |
var arg1 = this$7.get__O(); | |
var x$35 = arg1; | |
return new $c_s_Some(x$35._1__O().map__F1__O(new $c_sjsr_AnonFunction1((x$36$2) => { | |
var x$36 = x$36$2; | |
return x$36._2__O(); | |
})).reverse__O()); | |
} | |
} else { | |
throw new $c_s_MatchError(x1); | |
} | |
} | |
}; | |
var $d_Lcodes_quine_labs_recheck_fuzz_StaticSeeder = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_fuzz_StaticSeeder: 0 | |
}, false, "codes.quine.labs.recheck.fuzz.StaticSeeder", { | |
Lcodes_quine_labs_recheck_fuzz_StaticSeeder: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder.prototype.$classData = $d_Lcodes_quine_labs_recheck_fuzz_StaticSeeder; | |
function $p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node($thiz, node, prevIsRepeat, nextIsRepeat, ctx$1, maxSimpleRepeatSize$1, backRefs$1) { | |
if (ctx$1.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx$1.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx$1.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx$1.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx$1.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx$1.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:43"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:43"); | |
} | |
} | |
; | |
if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction) { | |
var x2 = node; | |
var ns = x2.Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction__f_children; | |
return new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction(ns.map__F1__O(new $c_sjsr_AnonFunction1(((this$1, prevIsRepeat$1, nextIsRepeat$1, ctx$1$1, maxSimpleRepeatSize$1$1, backRefs$1$1) => (x$2$2) => { | |
var x$2 = x$2$2; | |
return $p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node(this$1, x$2, prevIsRepeat$1, nextIsRepeat$1, ctx$1$1, maxSimpleRepeatSize$1$1, backRefs$1$1); | |
})($thiz, prevIsRepeat, nextIsRepeat, ctx$1, maxSimpleRepeatSize$1, backRefs$1)))); | |
} else if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence) { | |
var x3 = node; | |
var ns$2 = x3.Lcodes_quine_labs_recheck_regexp_Pattern$Sequence__f_children; | |
var children = new $c_s_PartialFunction$Lifted(ns$2); | |
return new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence(ns$2.zipWithIndex__O().map__F1__O(new $c_sjsr_AnonFunction1(((this$2, children$1, prevIsRepeat$2, nextIsRepeat$2, ctx$1$2, maxSimpleRepeatSize$1$2, backRefs$1$2) => (x0$1$2) => { | |
var x0$1 = x0$1$2; | |
if (x0$1 !== null) { | |
var c = x0$1._1__O(); | |
var i = x0$1._2$mcI$sp__I(); | |
var this$3 = children$1.apply__O__O(-1 + i | 0); | |
if (this$3.isEmpty__Z()) { | |
var this$4 = $m_s_None$(); | |
} else { | |
var arg1 = this$3.get__O(); | |
var x$3 = arg1; | |
var this$4 = new $c_s_Some(x$3 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat); | |
} | |
; | |
var prev = !!(this$4.isEmpty__Z() ? prevIsRepeat$2 : this$4.get__O()); | |
var this$5 = children$1.apply__O__O(1 + i | 0); | |
if (this$5.isEmpty__Z()) { | |
var this$6 = $m_s_None$(); | |
} else { | |
var arg1$1 = this$5.get__O(); | |
var x$4 = arg1$1; | |
var this$6 = new $c_s_Some(x$4 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat); | |
} | |
; | |
var next = !!(this$6.isEmpty__Z() ? nextIsRepeat$2 : this$6.get__O()); | |
return $p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node(this$2, c, prev, next, ctx$1$2, maxSimpleRepeatSize$1$2, backRefs$1$2); | |
} else { | |
throw new $c_s_MatchError(x0$1); | |
} | |
})($thiz, children, prevIsRepeat, nextIsRepeat, ctx$1, maxSimpleRepeatSize$1, backRefs$1)))); | |
} else if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Capture) { | |
var x4 = node; | |
var i$1 = x4.Lcodes_quine_labs_recheck_regexp_Pattern$Capture__f_index; | |
var n = x4.Lcodes_quine_labs_recheck_regexp_Pattern$Capture__f_child; | |
return new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Capture(i$1, $p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node($thiz, n, prevIsRepeat, nextIsRepeat, ctx$1, maxSimpleRepeatSize$1, backRefs$1)); | |
} else if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$NamedCapture) { | |
var x5 = node; | |
var i$2 = x5.Lcodes_quine_labs_recheck_regexp_Pattern$NamedCapture__f_index; | |
var name = x5.Lcodes_quine_labs_recheck_regexp_Pattern$NamedCapture__f_name; | |
var n$2 = x5.Lcodes_quine_labs_recheck_regexp_Pattern$NamedCapture__f_child; | |
return new $c_Lcodes_quine_labs_recheck_regexp_Pattern$NamedCapture(i$2, name, $p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node($thiz, n$2, prevIsRepeat, nextIsRepeat, ctx$1, maxSimpleRepeatSize$1, backRefs$1)); | |
} else if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Group) { | |
var x6 = node; | |
var n$3 = x6.Lcodes_quine_labs_recheck_regexp_Pattern$Group__f_child; | |
return new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Group($p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node($thiz, n$3, prevIsRepeat, nextIsRepeat, ctx$1, maxSimpleRepeatSize$1, backRefs$1)); | |
} else if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat) { | |
var x7 = node; | |
var q = x7.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_quantifier; | |
var n$4 = x7.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_child; | |
var x1$2 = q.normalized__Lcodes_quine_labs_recheck_regexp_Pattern$NormalizedQuantifier(); | |
if (x1$2 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Exact) { | |
var x2$2 = x1$2; | |
var n$5 = x2$2.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Exact__f_n; | |
var x1$3___1 = null; | |
var x1$3___2 = null; | |
var x1$3___1$mcI$sp = n$5; | |
var x1$3___2$mcI$sp = n$5; | |
} else if (x1$2 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Unbounded) { | |
var x4$2 = x1$2; | |
var min = x4$2.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Unbounded__f_min; | |
var x1$3___1 = null; | |
var x1$3___2 = null; | |
var x1$3___1$mcI$sp = min; | |
var x1$3___2$mcI$sp = min; | |
} else { | |
if (!(x1$2 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Bounded)) { | |
throw new $c_s_MatchError(x1$2); | |
} | |
; | |
var x6$2 = x1$2; | |
var min$2 = x6$2.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Bounded__f_min; | |
var max = x6$2.Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Bounded__f_max; | |
var x1$3___1 = null; | |
var x1$3___2 = null; | |
var x1$3___1$mcI$sp = min$2; | |
var x1$3___2$mcI$sp = max; | |
} | |
; | |
var min$3 = x1$3___1$mcI$sp; | |
var k = x1$3___2$mcI$sp; | |
return k > maxSimpleRepeatSize$1 ? min$3 === 0 ? new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Star(q.isLazy__Z()), $p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node($thiz, n$4, true, true, ctx$1, maxSimpleRepeatSize$1, backRefs$1)) : new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Plus(q.isLazy__Z()), $p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node($thiz, n$4, true, true, ctx$1, maxSimpleRepeatSize$1, backRefs$1)) : new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat(q, $p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node($thiz, n$4, true, true, ctx$1, maxSimpleRepeatSize$1, backRefs$1)); | |
} else if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LookAhead) { | |
var x8 = node; | |
var negative = x8.Lcodes_quine_labs_recheck_regexp_Pattern$LookAhead__f_negative; | |
var n$6 = x8.Lcodes_quine_labs_recheck_regexp_Pattern$LookAhead__f_child; | |
var c$1 = $p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node($thiz, n$6, prevIsRepeat, nextIsRepeat, ctx$1, maxSimpleRepeatSize$1, backRefs$1); | |
if (!negative && nextIsRepeat) { | |
return c$1; | |
} else { | |
var $$x1 = $m_s_package$().s_package$__f_Seq; | |
var array = [c$1, new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence($m_s_package$().s_package$__f_Seq.empty__sc_SeqOps())]; | |
return new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction($$x1.apply__sci_Seq__sc_SeqOps($ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array))); | |
} | |
} else if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LookBehind) { | |
var x9 = node; | |
var negative$2 = x9.Lcodes_quine_labs_recheck_regexp_Pattern$LookBehind__f_negative; | |
var n$7 = x9.Lcodes_quine_labs_recheck_regexp_Pattern$LookBehind__f_child; | |
var c$2 = $p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node($thiz, n$7, prevIsRepeat, nextIsRepeat, ctx$1, maxSimpleRepeatSize$1, backRefs$1); | |
if (!negative$2 && prevIsRepeat) { | |
return c$2; | |
} else { | |
var $$x2 = $m_s_package$().s_package$__f_Seq; | |
var array$1 = [c$2, new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence($m_s_package$().s_package$__f_Seq.empty__sc_SeqOps())]; | |
return new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction($$x2.apply__sci_Seq__sc_SeqOps($ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1))); | |
} | |
} else if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$BackReference) { | |
var x10 = node; | |
var i$3 = x10.Lcodes_quine_labs_recheck_regexp_Pattern$BackReference__f_index; | |
var $$x3 = $m_s_package$().s_package$__f_Seq; | |
var array$2 = [$p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node($thiz, backRefs$1.apply__O__O(i$3), prevIsRepeat, nextIsRepeat, ctx$1, maxSimpleRepeatSize$1, backRefs$1), new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence($m_s_package$().s_package$__f_Seq.empty__sc_SeqOps())]; | |
return new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction($$x3.apply__sci_Seq__sc_SeqOps($ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$2))); | |
} else if (node instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$NamedBackReference) { | |
var x11 = node; | |
var i$4 = x11.Lcodes_quine_labs_recheck_regexp_Pattern$NamedBackReference__f_index; | |
var $$x4 = $m_s_package$().s_package$__f_Seq; | |
var array$3 = [$p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node($thiz, backRefs$1.apply__O__O(i$4), prevIsRepeat, nextIsRepeat, ctx$1, maxSimpleRepeatSize$1, backRefs$1), new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence($m_s_package$().s_package$__f_Seq.empty__sc_SeqOps())]; | |
return new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction($$x4.apply__sci_Seq__sc_SeqOps($ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$3))); | |
} else { | |
return node; | |
} | |
} | |
function $c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$() { | |
} | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$.prototype.constructor = $c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$; | |
function $h_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$() { | |
} | |
$h_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$.prototype = $c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$.prototype; | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$.prototype.seed__Lcodes_quine_labs_recheck_regexp_Pattern__I__I__I__I__Lcodes_quine_labs_recheck_common_Context__sci_Set = function(pattern, maxSimpleRepeatSize, maxInitialGenerationSize, limit, maxSize, ctx) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:24"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:24"); | |
} | |
} | |
; | |
var simplePattern = this.simplify__Lcodes_quine_labs_recheck_regexp_Pattern__I__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_regexp_Pattern(pattern, maxSimpleRepeatSize, ctx); | |
var epsNFA = $m_Lcodes_quine_labs_recheck_automaton_EpsNFABuilder$().build__Lcodes_quine_labs_recheck_regexp_Pattern__Lcodes_quine_labs_recheck_common_Context__s_util_Try(simplePattern, ctx).get__O(); | |
var orderedNFA = epsNFA.toOrderedNFA__I__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_automaton_OrderedNFA(2147483647, ctx).rename__Lcodes_quine_labs_recheck_automaton_OrderedNFA().mapAlphabet__F1__Lcodes_quine_labs_recheck_automaton_OrderedNFA(new $c_sjsr_AnonFunction1((x$1$2) => { | |
var x$1 = x$1$2; | |
return x$1.head__Lcodes_quine_labs_recheck_unicode_UChar(); | |
})); | |
var $$x2 = orderedNFA.Lcodes_quine_labs_recheck_automaton_OrderedNFA__f_alphabet; | |
var $$x1 = orderedNFA.Lcodes_quine_labs_recheck_automaton_OrderedNFA__f_stateSet; | |
var this$2 = orderedNFA.Lcodes_quine_labs_recheck_automaton_OrderedNFA__f_inits; | |
var seeder = new $c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder($$x2, $$x1, $m_sci_Set$().from__sc_IterableOnce__sci_Set(this$2), orderedNFA.Lcodes_quine_labs_recheck_automaton_OrderedNFA__f_acceptSet, orderedNFA.toGraph__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_data_Graph(ctx), ctx); | |
var this$3 = $m_s_$less$colon$less$(); | |
return seeder.seed__I__I__I__s_$eq$colon$eq__sci_Set(maxInitialGenerationSize, limit, maxSize, this$3.s_$less$colon$less$__f_singleton); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$.prototype.simplify__Lcodes_quine_labs_recheck_regexp_Pattern__I__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_regexp_Pattern = function(pattern, maxSimpleRepeatSize, ctx) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:40"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/fuzz/StaticSeeder.scala:40"); | |
} | |
} | |
; | |
var backRefs = this.extractBackRefs__Lcodes_quine_labs_recheck_regexp_Pattern$Node__sci_Map(pattern.Lcodes_quine_labs_recheck_regexp_Pattern__f_node); | |
return new $c_Lcodes_quine_labs_recheck_regexp_Pattern($p_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$__loop$1__Lcodes_quine_labs_recheck_regexp_Pattern$Node__Z__Z__Lcodes_quine_labs_recheck_common_Context__I__sci_Map__Lcodes_quine_labs_recheck_regexp_Pattern$Node(this, pattern.Lcodes_quine_labs_recheck_regexp_Pattern__f_node, true, true, ctx, maxSimpleRepeatSize, backRefs), pattern.Lcodes_quine_labs_recheck_regexp_Pattern__f_flagSet); | |
}; | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$.prototype.extractBackRefs__Lcodes_quine_labs_recheck_regexp_Pattern$Node__sci_Map = function(node) { | |
while (true) { | |
var x1 = node; | |
if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction) { | |
var x2 = x1; | |
var ns = x2.Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction__f_children; | |
var $$x1 = ns.flatMap__F1__O(new $c_sjsr_AnonFunction1((node$2$2) => { | |
var node$2 = node$2$2; | |
return $m_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$().extractBackRefs__Lcodes_quine_labs_recheck_regexp_Pattern$Node__sci_Map(node$2); | |
})); | |
var this$2 = $m_s_$less$colon$less$(); | |
return $$x1.toMap__s_$less$colon$less__sci_Map(this$2.s_$less$colon$less$__f_singleton); | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence) { | |
var x3 = x1; | |
var ns$2 = x3.Lcodes_quine_labs_recheck_regexp_Pattern$Sequence__f_children; | |
var $$x2 = ns$2.flatMap__F1__O(new $c_sjsr_AnonFunction1((node$3$2) => { | |
var node$3 = node$3$2; | |
return $m_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$().extractBackRefs__Lcodes_quine_labs_recheck_regexp_Pattern$Node__sci_Map(node$3); | |
})); | |
var this$3 = $m_s_$less$colon$less$(); | |
return $$x2.toMap__s_$less$colon$less__sci_Map(this$3.s_$less$colon$less$__f_singleton); | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Capture) { | |
var x4 = x1; | |
var i = x4.Lcodes_quine_labs_recheck_regexp_Pattern$Capture__f_index; | |
var n = x4.Lcodes_quine_labs_recheck_regexp_Pattern$Capture__f_child; | |
var this$9 = $m_s_Predef$().s_Predef$__f_Map; | |
var array = [$ct_T2__O__O__(new $c_T2(), i, n)]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
var this$10 = this$9.from__sc_IterableOnce__sci_Map(elems); | |
var xs = this.extractBackRefs__Lcodes_quine_labs_recheck_regexp_Pattern$Node__sci_Map(n); | |
return this$10.concat__sc_IterableOnce__sc_IterableOps(xs); | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$NamedCapture) { | |
var x5 = x1; | |
var i$2 = x5.Lcodes_quine_labs_recheck_regexp_Pattern$NamedCapture__f_index; | |
var n$2 = x5.Lcodes_quine_labs_recheck_regexp_Pattern$NamedCapture__f_child; | |
var this$16 = $m_s_Predef$().s_Predef$__f_Map; | |
var array$1 = [$ct_T2__O__O__(new $c_T2(), i$2, n$2)]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
var this$17 = this$16.from__sc_IterableOnce__sci_Map(elems$1); | |
var xs$1 = this.extractBackRefs__Lcodes_quine_labs_recheck_regexp_Pattern$Node__sci_Map(n$2); | |
return this$17.concat__sc_IterableOnce__sc_IterableOps(xs$1); | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Group) { | |
var x7 = x1; | |
var n$3 = x7.Lcodes_quine_labs_recheck_regexp_Pattern$Group__f_child; | |
node = n$3; | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat) { | |
var x8 = x1; | |
var n$4 = x8.Lcodes_quine_labs_recheck_regexp_Pattern$Repeat__f_child; | |
node = n$4; | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LookAhead) { | |
var x10 = x1; | |
var n$5 = x10.Lcodes_quine_labs_recheck_regexp_Pattern$LookAhead__f_child; | |
node = n$5; | |
} else if (x1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LookBehind) { | |
var x12 = x1; | |
var n$6 = x12.Lcodes_quine_labs_recheck_regexp_Pattern$LookBehind__f_child; | |
node = n$6; | |
} else { | |
return $m_sci_Map$EmptyMap$(); | |
} | |
} | |
}; | |
var $d_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$ = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_fuzz_StaticSeeder$: 0 | |
}, false, "codes.quine.labs.recheck.fuzz.StaticSeeder$", { | |
Lcodes_quine_labs_recheck_fuzz_StaticSeeder$: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$.prototype.$classData = $d_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$; | |
var $n_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$; | |
function $m_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$() { | |
if (!$n_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$) { | |
$n_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$ = new $c_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$(); | |
} | |
; | |
return $n_Lcodes_quine_labs_recheck_fuzz_StaticSeeder$; | |
} | |
function $c_Lcodes_quine_labs_recheck_recall_RecallValidator$() { | |
} | |
$c_Lcodes_quine_labs_recheck_recall_RecallValidator$.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_recall_RecallValidator$.prototype.constructor = $c_Lcodes_quine_labs_recheck_recall_RecallValidator$; | |
function $h_Lcodes_quine_labs_recheck_recall_RecallValidator$() { | |
} | |
$h_Lcodes_quine_labs_recheck_recall_RecallValidator$.prototype = $c_Lcodes_quine_labs_recheck_recall_RecallValidator$.prototype; | |
$c_Lcodes_quine_labs_recheck_recall_RecallValidator$.prototype.generate__T__T__Lcodes_quine_labs_recheck_diagnostics_AttackPattern__T = function(source, flags, attack) { | |
var str = $ct_scm_StringBuilder__(new $c_scm_StringBuilder()); | |
str.append__T__scm_StringBuilder("const re = new RegExp(" + new $c_Lcodes_quine_labs_recheck_unicode_UString(source) + ", " + new $c_Lcodes_quine_labs_recheck_unicode_UString(flags) + ");\n"); | |
str.append__T__scm_StringBuilder("const input = " + attack.toString__Lcodes_quine_labs_recheck_diagnostics_AttackPattern$Style__T($m_Lcodes_quine_labs_recheck_diagnostics_AttackPattern$JavaScript$()) + ";\n"); | |
str.append__T__scm_StringBuilder("const start = Date.now();\n"); | |
str.append__T__scm_StringBuilder("re.exec(input);\n"); | |
str.append__T__scm_StringBuilder("const end = Date.now();\n"); | |
str.append__T__scm_StringBuilder("console.log(Number(end - start).toString());\n"); | |
return str.scm_StringBuilder__f_underlying.jl_StringBuilder__f_java$lang$StringBuilder$$content; | |
}; | |
$c_Lcodes_quine_labs_recheck_recall_RecallValidator$.prototype.result__s_Option__Lcodes_quine_labs_recheck_common_Context__Lcodes_quine_labs_recheck_recall_RecallResult = function(output, ctx) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z() || ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_deadline.isOverdue__Z()) { | |
if (ctx.Lcodes_quine_labs_recheck_common_Context__f_token !== null && ctx.Lcodes_quine_labs_recheck_common_Context__f_token.isCancelled__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_CancelException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/recall/RecallValidator.scala:60"); | |
} else { | |
throw new $c_Lcodes_quine_labs_recheck_common_TimeoutException("modules/recheck-core/shared/src/main/scala/codes/quine/labs/recheck/recall/RecallValidator.scala:60"); | |
} | |
} | |
; | |
var rc13 = false; | |
var x2 = null; | |
if (output instanceof $c_s_Some) { | |
rc13 = true; | |
x2 = output; | |
var p3 = x2.s_Some__f_value; | |
if (p3 !== null) { | |
var p4 = p3.T3__f__1 | 0; | |
var out = p3.T3__f__2; | |
if (p4 === 0) { | |
var this$3 = $m_sc_StringParsers$().parseLong__T__s_Option(out); | |
if (this$3.isEmpty__Z()) { | |
throw new $c_Lcodes_quine_labs_recheck_common_UnexpectedException("invalid recall validation output"); | |
} | |
; | |
var t = $uJ(this$3.get__O()); | |
var lo = t.RTLong__f_lo; | |
var hi = t.RTLong__f_hi; | |
var unit = $m_ju_concurrent_TimeUnit$().ju_concurrent_TimeUnit$__f_MILLISECONDS; | |
return new $c_Lcodes_quine_labs_recheck_recall_RecallResult$Finish(new $c_s_concurrent_duration_FiniteDuration(new $c_RTLong(lo, hi), unit)); | |
} | |
} | |
} | |
; | |
if (rc13) { | |
var p8 = x2.s_Some__f_value; | |
if (p8 !== null) { | |
var err = p8.T3__f__3; | |
return new $c_Lcodes_quine_labs_recheck_recall_RecallResult$Error(err); | |
} | |
} | |
; | |
var x = $m_s_None$(); | |
if (x === output) { | |
return $m_Lcodes_quine_labs_recheck_recall_RecallResult$Timeout$(); | |
} | |
; | |
throw new $c_s_MatchError(output); | |
}; | |
var $d_Lcodes_quine_labs_recheck_recall_RecallValidator$ = new $TypeData().initClass({ | |
Lcodes_quine_labs_recheck_recall_RecallValidator$: 0 | |
}, false, "codes.quine.labs.recheck.recall.RecallValidator$", { | |
Lcodes_quine_labs_recheck_recall_RecallValidator$: 1, | |
O: 1 | |
}); | |
$c_Lcodes_quine_labs_recheck_recall_RecallValidator$.prototype.$classData = $d_Lcodes_quine_labs_recheck_recall_RecallValidator$; | |
var $n_Lcodes_quine_labs_recheck_recall_RecallValidator$; | |
function $m_Lcodes_quine_labs_recheck_recall_RecallValidator$() { | |
if (!$n_Lcodes_quine_labs_recheck_recall_RecallValidator$) { | |
$n_Lcodes_quine_labs_recheck_recall_RecallValidator$ = new $c_Lcodes_quine_labs_recheck_recall_RecallValidator$(); | |
} | |
; | |
return $n_Lcodes_quine_labs_recheck_recall_RecallValidator$; | |
} | |
function $p_Lcodes_quine_labs_recheck_regexp_Parser__isDigit__C__Z($thiz, c) { | |
return c >= 48 && c <= 57; | |
} | |
function $p_Lcodes_quine_labs_recheck_regexp_Parser__isHexDigit__C__Z($thiz, c) { | |
return $p_Lcodes_quine_labs_recheck_regexp_Parser__isDigit__C__Z($thiz, c) || c >= 97 && c <= 102 || c >= 65 && c <= 70; | |
} | |
function $p_Lcodes_quine_labs_recheck_regexp_Parser__isControl__C__Z($thiz, c) { | |
return c >= 97 && c <= 122 || c >= 65 && c <= 90; | |
} | |
function $p_Lcodes_quine_labs_recheck_regexp_Parser__isSyntax__C__Z($thiz, c) { | |
return $m_sc_StringOps$().contains$extension__T__C__Z("^$\\.*+?()[]{}|/", c); | |
} | |
function $p_Lcodes_quine_labs_recheck_regexp_Parser__isSequenceDelimiter__C__Z($thiz, c) { | |
return c === 124 || c === 41; | |
} | |
function $p_Lcodes_quine_labs_recheck_regexp_Parser__isUnicodeProperty__C__Z($thiz, c) { | |
return $p_Lcodes_quine_labs_recheck_regexp_Parser__isControl__C__Z($thiz, c) || c === 95; | |
} | |
function $p_Lcodes_quine_labs_recheck_regexp_Parser__isUnicodePropertyValue__C__Z($thiz, c) { | |
return $p_Lcodes_quine_labs_recheck_regexp_Parser__isUnicodeProperty__C__Z($thiz, c) || $p_Lcodes_quine_labs_recheck_regexp_Parser__isDigit__C__Z($thiz, c); | |
} | |
function $p_Lcodes_quine_labs_recheck_regexp_Parser__isIDStart__Lcodes_quine_labs_recheck_unicode_UChar__Z($thiz, u) { | |
var x$2 = new $c_Lcodes_quine_labs_recheck_unicode_UChar(36); | |
if (u !== null && u.equals__O__Z(x$2)) { | |
var $$x1 = true; | |
} else { | |
var x$4 = new $c_Lcodes_quine_labs_recheck_unicode_UChar(95); | |
var $$x1 = u !== null && u.equals__O__Z(x$4); | |
} | |
; | |
if ($$x1) { | |
return true; | |
} else { | |
return $m_Lcodes_quine_labs_recheck_regexp_Parser$().codes$quine$labs$recheck$regexp$Parser$$IDStart__Lcodes_quine_labs_recheck_unicode_IChar().contains__Lcodes_quine_labs_recheck_unicode_UChar__Z(u); | |
} | |
} | |
function $p_Lcodes_quine_labs_recheck_regexp_Parser__isIDPart__Lcodes_quine_labs_recheck_unicode_UChar__Z($thiz, u) { | |
var x$2 = new $c_Lcodes_quine_labs_recheck_unicode_UChar(36); | |
if (u !== null && u.equals__O__Z(x$2)) { | |
var $$x2 = true; | |
} else { | |
var x$4 = new $c_Lcodes_quine_labs_recheck_unicode_UChar(8204); | |
var $$x2 = u !== null && u.equals__O__Z(x$4); | |
} | |
; | |
if ($$x2) { | |
var $$x1 = true; | |
} else { | |
var x$6 = new $c_Lcodes_quine_labs_recheck_unicode_UChar(8205); | |
var $$x1 = u !== null && u.equals__O__Z(x$6); | |
} | |
; | |
if ($$x1) { | |
return true; | |
} else { | |
return $m_Lcodes_quine_labs_recheck_regexp_Parser$().codes$quine$labs$recheck$regexp$Parser$$IDContinue__Lcodes_quine_labs_recheck_unicode_IChar().contains__Lcodes_quine_labs_recheck_unicode_UChar__Z(u); | |
} | |
} | |
function $c_Lcodes_quine_labs_recheck_regexp_Parser(unicode, additional, hasNamedCapture, captures) { | |
this.Lcodes_quine_labs_recheck_regexp_Parser__f_unicode = false; | |
this.Lcodes_quine_labs_recheck_regexp_Parser__f_additional = false; | |
this.Lcodes_quine_labs_recheck_regexp_Parser__f_hasNamedCapture = false; | |
this.Lcodes_quine_labs_recheck_regexp_Parser__f_captures = 0; | |
this.Lcodes_quine_labs_recheck_regexp_Parser__f_unicode = unicode; | |
this.Lcodes_quine_labs_recheck_regexp_Parser__f_additional = additional; | |
this.Lcodes_quine_labs_recheck_regexp_Parser__f_hasNamedCapture = hasNamedCapture; | |
this.Lcodes_quine_labs_recheck_regexp_Parser__f_captures = captures; | |
} | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype = new $h_O(); | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.constructor = $c_Lcodes_quine_labs_recheck_regexp_Parser; | |
function $h_Lcodes_quine_labs_recheck_regexp_Parser() { | |
} | |
$h_Lcodes_quine_labs_recheck_regexp_Parser.prototype = $c_Lcodes_quine_labs_recheck_regexp_Parser.prototype; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.Source__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$1) { | |
var startIndex = evidence$1.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$1.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$1.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("Source").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
this$1.UnitSequencer0__Lfastparse_Implicits$LowPriSequencer$UnitSequencer0$(); | |
var preLhsIndex$macro$2 = evidence$1.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$1.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
this.Disjunction__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$1); | |
if (!evidence$1.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$4 = evidence$1; | |
} else { | |
var postLhsIndex$macro$3 = evidence$1.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$1.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$1.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$1.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$1.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$1.Lfastparse_ParsingRun__f_isSuccess && evidence$1.Lfastparse_ParsingRun__f_cut) { | |
var x1$4 = evidence$1; | |
} else { | |
var preRhsIndex$macro$4 = evidence$1.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().End__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$1); | |
var rhsAggregate$macro$7 = evidence$1.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$1.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$1.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14 = evidence$1; | |
} else { | |
var postRhsIndex$macro$5 = evidence$1.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$1.checkForDrop__Z(); | |
} | |
; | |
var t = lhsValue$macro$12; | |
var res$macro$14 = evidence$1.freshSuccess__O__I__Lfastparse_ParsingRun(t, nextIndex$macro$13); | |
} | |
; | |
if (evidence$1.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$1.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4 === evidence$1.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var x1$4 = res$macro$14; | |
} | |
} | |
; | |
if (instrument) { | |
evidence$1.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("Source").Lsourcecode_Name__f_value, x1$4.Lfastparse_ParsingRun__f_index, x1$4.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$4.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("Source").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$4.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$4.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$4.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$4.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("Source").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex); | |
var this$10 = x1$4.Lfastparse_ParsingRun__f_failureStack; | |
x1$4.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$10); | |
} | |
} | |
; | |
return x1$4; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.Disjunction__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$2) { | |
var startIndex = evidence$2.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$2.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$2.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("Disjunction").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$2.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$2.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$2.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$2.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$2); | |
if (!evidence$2.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$2.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$2.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$2.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$2.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$2.Lfastparse_ParsingRun__f_isSuccess && evidence$2.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$2.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var this$4 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$2 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$4); | |
var preLhsIndex$macro$28 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var input$macro$37 = evidence$2.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
this.Sequence__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$2); | |
if (!evidence$2.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$2 = evidence$2; | |
} else { | |
var postLhsIndex$macro$29 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$32 = evidence$2.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$35 = evidence$2.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$29 > preLhsIndex$macro$28) { | |
evidence$2.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$38 = evidence$2.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$2.Lfastparse_ParsingRun__f_isSuccess && evidence$2.Lfastparse_ParsingRun__f_cut) { | |
var parse0$2 = evidence$2; | |
} else { | |
var preRhsIndex$macro$30 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var this$6 = $m_Lfastparse_Implicits$Repeater$(); | |
this$6.GenericRepeatedImplicit0__Lfastparse_Implicits$LowPriRepeater$GenericRepeatedImplicit0$(); | |
var elem = evidence$2.Lfastparse_ParsingRun__f_cut; | |
var elem$1 = false; | |
elem$1 = elem; | |
var acc$macro$18 = $m_scm_Buffer$().empty__sc_SeqOps(); | |
var startIndex$macro$19 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var count$macro$20 = 0; | |
var lastAgg$macro$25 = null; | |
while (true) { | |
evidence$2.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$2$1 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var input$macro$11$1 = evidence$2.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input = evidence$2.Lfastparse_ParsingRun__f_input; | |
var index = evidence$2.Lfastparse_ParsingRun__f_index; | |
if (input.isReachable__I__Z(index)) { | |
var this$10 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$10.charCodeAt(index) | 0)) === 124; | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$2.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index | 0); | |
} else { | |
evidence$2.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$2.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$2.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"|"')); | |
} | |
; | |
if (evidence$2.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$3$1 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6$1 = evidence$2.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9$1 = evidence$2.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3$1 > preLhsIndex$macro$2$1) { | |
evidence$2.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$2.Lfastparse_ParsingRun__f_isSuccess && evidence$2.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$4$1 = evidence$2.Lfastparse_ParsingRun__f_index; | |
this.Sequence__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$2); | |
var rhsAggregate$macro$7 = evidence$2.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$2.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$2.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$5 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4$1; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11$1.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3$1 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$2.checkForDrop__Z(); | |
} | |
; | |
var v = evidence$2.Lfastparse_ParsingRun__f_successValue; | |
evidence$2.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$13); | |
} | |
; | |
if (evidence$2.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$2.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2$1, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9$1, rhsMsg$macro$8), lhsAggregate$macro$6$1.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4$1 === evidence$2.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var parsedMsg$macro$24 = evidence$2.Lfastparse_ParsingRun__f_shortParserMsg; | |
var parsedAgg$macro$26 = evidence$2.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
elem$1 = !!(elem$1 | evidence$2.Lfastparse_ParsingRun__f_cut); | |
if (!evidence$2.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$1 = evidence$2.Lfastparse_ParsingRun__f_cut ? evidence$2 : evidence$2.freshSuccess__O__I__Z__Lfastparse_ParsingRun($m_sci_Seq$().from__sc_IterableOnce__sci_Seq(acc$macro$18), startIndex$macro$19, elem$1); | |
if (evidence$2.Lfastparse_ParsingRun__f_verboseFailures) { | |
var $$x4 = startIndex$macro$19; | |
var $$x3 = new $c_sjsr_AnonFunction0(((parsedMsg$macro$24$1) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$macro$24$1.Lfastparse_internal_Msgs__f_value) + ".rep")(parsedMsg$macro$24)); | |
if (lastAgg$macro$25 === null) { | |
var $$x2 = evidence$2.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
} else { | |
var rassoc$2 = evidence$2.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var $$x2 = lastAgg$macro$25.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$2); | |
} | |
; | |
evidence$2.aggregateMsg__I__F0__Lfastparse_internal_Msgs__V($$x4, $$x3, $$x2); | |
} | |
; | |
break; | |
} else { | |
var beforeSepIndex$macro$21 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var t = evidence$2.Lfastparse_ParsingRun__f_successValue; | |
acc$macro$18.addOne__O__scm_Growable(t); | |
evidence$2.Lfastparse_ParsingRun__f_cut = false; | |
if ($m_Lfastparse_NoWhitespace$noWhitespaceImplicit$() !== $m_Lfastparse_NoWhitespace$noWhitespaceImplicit$()) { | |
$m_Lfastparse_internal_Util$().consumeWhitespace__F1__Lfastparse_ParsingRun__V($m_Lfastparse_NoWhitespace$noWhitespaceImplicit$(), evidence$2); | |
} | |
; | |
if (!evidence$2.Lfastparse_ParsingRun__f_isSuccess && evidence$2.Lfastparse_ParsingRun__f_cut) { | |
break; | |
} else { | |
evidence$2.Lfastparse_ParsingRun__f_cut = false; | |
var temp$count$macro$20 = 1 + count$macro$20 | 0; | |
startIndex$macro$19 = beforeSepIndex$macro$21; | |
count$macro$20 = temp$count$macro$20; | |
lastAgg$macro$25 = parsedAgg$macro$26; | |
} | |
} | |
} | |
; | |
var rhsAggregate$macro$33 = evidence$2.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$34 = evidence$2.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$2.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$40 = evidence$2; | |
} else { | |
var postRhsIndex$macro$31 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$36 = postRhsIndex$macro$31 > preRhsIndex$macro$30; | |
var nextIndex$macro$39 = !rhsMadeProgress$macro$36 && input$macro$37.isReachable__I__Z(postRhsIndex$macro$31) ? postLhsIndex$macro$29 : postRhsIndex$macro$31; | |
if (rhsMadeProgress$macro$36) { | |
evidence$2.checkForDrop__Z(); | |
} | |
; | |
var res$macro$40 = evidence$2.freshSuccess__O__I__Lfastparse_ParsingRun(x1$2.apply__O__O__O(lhsValue$macro$38, evidence$2.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$39); | |
} | |
; | |
if (evidence$2.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$2.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$28, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$35, rhsMsg$macro$34), lhsAggregate$macro$32.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$33), preRhsIndex$macro$30 === evidence$2.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$2 = res$macro$40; | |
} | |
} | |
; | |
if (parse0$2.Lfastparse_ParsingRun__f_isSuccess) { | |
var arg1 = parse0$2.Lfastparse_ParsingRun__f_successValue; | |
matchEnd5: { | |
var $$x5; | |
if (arg1 !== null) { | |
var node = arg1._1__O(); | |
var p2 = arg1._2__O(); | |
if (p2 !== null) { | |
$m_s_package$(); | |
if ((new $c_sc_SeqFactory$UnapplySeqWrapper(p2), true) && p2.lengthCompare__I__I(0) === 0) { | |
var $$x5 = node; | |
break matchEnd5; | |
} | |
} | |
} | |
; | |
if (arg1 !== null) { | |
var node$2 = arg1._1__O(); | |
var nodes = arg1._2__O(); | |
var $$x5 = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Disjunction(nodes.prepended__O__O(node$2)); | |
break matchEnd5; | |
} | |
; | |
throw new $c_s_MatchError(arg1); | |
} | |
; | |
parse0$2.Lfastparse_ParsingRun__f_successValue = $$x5; | |
} | |
; | |
var rhsAggregate$macro$7$1 = evidence$2.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8$1 = evidence$2.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$2.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14$1 = evidence$2; | |
} else { | |
var postRhsIndex$macro$5$1 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10$1 = postRhsIndex$macro$5$1 > preRhsIndex$macro$4; | |
var nextIndex$macro$13$1 = !rhsMadeProgress$macro$10$1 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5$1) ? postLhsIndex$macro$3 : postRhsIndex$macro$5$1; | |
if (rhsMadeProgress$macro$10$1) { | |
evidence$2.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14$1 = evidence$2.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$2.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13$1); | |
} | |
; | |
if (evidence$2.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$2.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8$1), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7$1), preRhsIndex$macro$4 === evidence$2.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$2.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$4 = evidence$2; | |
} else { | |
var postLhsIndex$macro$18 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$2.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$2.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17) { | |
evidence$2.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27 = evidence$2.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$2.Lfastparse_ParsingRun__f_isSuccess && evidence$2.Lfastparse_ParsingRun__f_cut) { | |
var parse0$4 = evidence$2; | |
} else { | |
var preRhsIndex$macro$19 = evidence$2.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$2); | |
var rhsAggregate$macro$22 = evidence$2.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$2.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$2.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29 = evidence$2; | |
} else { | |
var postRhsIndex$macro$20 = evidence$2.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$2.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29 = evidence$2.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27, evidence$2.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28); | |
} | |
; | |
if (evidence$2.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$2.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$2.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$4 = res$macro$29; | |
} | |
} | |
; | |
if (!parse0$4.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$4; | |
} else { | |
var arg1$1 = parse0$4.Lfastparse_ParsingRun__f_successValue; | |
if (arg1$1 === null) { | |
throw new $c_s_MatchError(arg1$1); | |
} | |
; | |
var start2 = arg1$1.T3__f__1 | 0; | |
var node$1 = arg1$1.T3__f__2; | |
var end = arg1$1.T3__f__3 | 0; | |
parse0$4.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node$1, start2, end); | |
var x1$7 = parse0$4; | |
} | |
; | |
if (instrument$1) { | |
evidence$2.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$26 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$26); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$2.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("Disjunction").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("Disjunction").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("Disjunction").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$33 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$33); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.Sequence__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$3) { | |
var startIndex = evidence$3.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$3.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$3.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("Sequence").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$3.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$3.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$3.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$3.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$3.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$3.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$3.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$3); | |
if (!evidence$3.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$3.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$3.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$3.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$3.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$3.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$3.Lfastparse_ParsingRun__f_isSuccess && evidence$3.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$3.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var this$4 = $m_Lfastparse_Implicits$Repeater$(); | |
this$4.GenericRepeatedImplicit0__Lfastparse_Implicits$LowPriRepeater$GenericRepeatedImplicit0$(); | |
var elem = evidence$3.Lfastparse_ParsingRun__f_cut; | |
var elem$1 = false; | |
elem$1 = elem; | |
var acc$macro$18 = $m_scm_Buffer$().empty__sc_SeqOps(); | |
var startIndex$macro$19 = evidence$3.Lfastparse_ParsingRun__f_index; | |
var count$macro$20 = 0; | |
var lastAgg$macro$25 = null; | |
var parse0$1; | |
while (true) { | |
evidence$3.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$2$1 = evidence$3.Lfastparse_ParsingRun__f_index; | |
var input$macro$11$1 = evidence$3.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var startPos = evidence$3.Lfastparse_ParsingRun__f_index; | |
var startCut = evidence$3.Lfastparse_ParsingRun__f_cut; | |
var oldNoCut = evidence$3.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$3.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
var startTerminals = evidence$3.Lfastparse_ParsingRun__f_failureTerminalAggregate; | |
var x1$2$2 = new $c_sjsr_AnonFunction1(((this$10) => (c$2) => { | |
var c = $uC(c$2); | |
return $p_Lcodes_quine_labs_recheck_regexp_Parser__isSequenceDelimiter__C__Z(this$10, c); | |
})(this)); | |
var startIndex$2 = evidence$3.Lfastparse_ParsingRun__f_index; | |
if (evidence$3.Lfastparse_ParsingRun__f_input.isReachable__I__Z(evidence$3.Lfastparse_ParsingRun__f_index)) { | |
var this$11 = evidence$3.Lfastparse_ParsingRun__f_input; | |
var index = evidence$3.Lfastparse_ParsingRun__f_index; | |
var this$12 = this$11.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = !!x1$2$2.apply__O__O($bC(65535 & (this$12.charCodeAt(index) | 0))); | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if (!$$x1) { | |
evidence$3.freshFailure__Lfastparse_ParsingRun(); | |
} else { | |
evidence$3.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + evidence$3.Lfastparse_ParsingRun__f_index | 0); | |
} | |
; | |
if (evidence$3.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$3.aggregateTerminal__I__F0__V(startIndex$2, new $c_sjsr_AnonFunction0(((x1$2$3) => () => "char-pred(" + x1$2$3 + ")")(x1$2$2))); | |
} | |
; | |
evidence$3.Lfastparse_ParsingRun__f_noDropBuffer = oldNoCut; | |
var msg = evidence$3.Lfastparse_ParsingRun__f_shortParserMsg; | |
var res$1 = evidence$3.Lfastparse_ParsingRun__f_isSuccess ? evidence$3.freshFailure__I__Lfastparse_ParsingRun(startPos) : evidence$3.freshSuccessUnit__I__Lfastparse_ParsingRun(startPos); | |
if (evidence$3.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$3.Lfastparse_ParsingRun__f_failureTerminalAggregate = startTerminals; | |
evidence$3.Lfastparse_ParsingRun__f_failureGroupAggregate = $m_Lfastparse_internal_Msgs$().Lfastparse_internal_Msgs$__f_empty; | |
evidence$3.setMsg__I__F0__V(startPos, new $c_sjsr_AnonFunction0(((msg$1) => () => "!" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$1.Lfastparse_internal_Msgs__f_value))(msg))); | |
} | |
; | |
res$1.Lfastparse_ParsingRun__f_cut = startCut; | |
if (evidence$3.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$3$1 = evidence$3.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6$1 = evidence$3.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9$1 = evidence$3.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3$1 > preLhsIndex$macro$2$1) { | |
evidence$3.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$3.Lfastparse_ParsingRun__f_isSuccess && evidence$3.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$4$1 = evidence$3.Lfastparse_ParsingRun__f_index; | |
this.Term__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$3); | |
var rhsAggregate$macro$7 = evidence$3.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$3.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$3.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$5 = evidence$3.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4$1; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11$1.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3$1 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$3.checkForDrop__Z(); | |
} | |
; | |
var v = evidence$3.Lfastparse_ParsingRun__f_successValue; | |
evidence$3.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$13); | |
} | |
; | |
if (evidence$3.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$3.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2$1, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9$1, rhsMsg$macro$8), lhsAggregate$macro$6$1.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4$1 === evidence$3.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var parsedMsg$macro$24 = evidence$3.Lfastparse_ParsingRun__f_shortParserMsg; | |
var parsedAgg$macro$26 = evidence$3.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
elem$1 = !!(elem$1 | evidence$3.Lfastparse_ParsingRun__f_cut); | |
if (!evidence$3.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$2 = evidence$3.Lfastparse_ParsingRun__f_cut ? evidence$3 : evidence$3.freshSuccess__O__I__Z__Lfastparse_ParsingRun($m_sci_Seq$().from__sc_IterableOnce__sci_Seq(acc$macro$18), startIndex$macro$19, elem$1); | |
if (evidence$3.Lfastparse_ParsingRun__f_verboseFailures) { | |
var $$x4 = startIndex$macro$19; | |
var $$x3 = new $c_sjsr_AnonFunction0(((parsedMsg$macro$24$1) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$macro$24$1.Lfastparse_internal_Msgs__f_value) + ".rep")(parsedMsg$macro$24)); | |
if (lastAgg$macro$25 === null) { | |
var $$x2 = evidence$3.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
} else { | |
var rassoc$2 = evidence$3.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var $$x2 = lastAgg$macro$25.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$2); | |
} | |
; | |
evidence$3.aggregateMsg__I__F0__Lfastparse_internal_Msgs__V($$x4, $$x3, $$x2); | |
} | |
; | |
var parse0$1 = res$2; | |
break; | |
} else { | |
var beforeSepIndex$macro$21 = evidence$3.Lfastparse_ParsingRun__f_index; | |
var t = evidence$3.Lfastparse_ParsingRun__f_successValue; | |
acc$macro$18.addOne__O__scm_Growable(t); | |
evidence$3.Lfastparse_ParsingRun__f_cut = false; | |
if ($m_Lfastparse_NoWhitespace$noWhitespaceImplicit$() !== $m_Lfastparse_NoWhitespace$noWhitespaceImplicit$()) { | |
$m_Lfastparse_internal_Util$().consumeWhitespace__F1__Lfastparse_ParsingRun__V($m_Lfastparse_NoWhitespace$noWhitespaceImplicit$(), evidence$3); | |
} | |
; | |
if (!(!evidence$3.Lfastparse_ParsingRun__f_isSuccess && evidence$3.Lfastparse_ParsingRun__f_cut)) { | |
evidence$3.Lfastparse_ParsingRun__f_cut = false; | |
var temp$count$macro$20 = 1 + count$macro$20 | 0; | |
startIndex$macro$19 = beforeSepIndex$macro$21; | |
count$macro$20 = temp$count$macro$20; | |
lastAgg$macro$25 = parsedAgg$macro$26; | |
continue; | |
} | |
; | |
var parse0$1 = evidence$3; | |
break; | |
} | |
} | |
; | |
if (parse0$1.Lfastparse_ParsingRun__f_isSuccess) { | |
var arg1 = parse0$1.Lfastparse_ParsingRun__f_successValue; | |
matchEnd4: { | |
var $$x5; | |
if (arg1 !== null) { | |
$m_s_package$(); | |
if ((new $c_sc_SeqFactory$UnapplySeqWrapper(arg1), true) && arg1.lengthCompare__I__I(1) === 0) { | |
var node = arg1.apply__I__O(0); | |
var $$x5 = node; | |
break matchEnd4; | |
} | |
} | |
; | |
var $$x5 = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Sequence(arg1); | |
} | |
; | |
parse0$1.Lfastparse_ParsingRun__f_successValue = $$x5; | |
} | |
; | |
var rhsAggregate$macro$7$1 = evidence$3.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8$1 = evidence$3.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$3.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14$1 = evidence$3; | |
} else { | |
var postRhsIndex$macro$5$1 = evidence$3.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10$1 = postRhsIndex$macro$5$1 > preRhsIndex$macro$4; | |
var nextIndex$macro$13$1 = !rhsMadeProgress$macro$10$1 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5$1) ? postLhsIndex$macro$3 : postRhsIndex$macro$5$1; | |
if (rhsMadeProgress$macro$10$1) { | |
evidence$3.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14$1 = evidence$3.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$3.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13$1); | |
} | |
; | |
if (evidence$3.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$3.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8$1), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7$1), preRhsIndex$macro$4 === evidence$3.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$3.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$3 = evidence$3; | |
} else { | |
var postLhsIndex$macro$18 = evidence$3.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$3.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$3.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17) { | |
evidence$3.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27 = evidence$3.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$3.Lfastparse_ParsingRun__f_isSuccess && evidence$3.Lfastparse_ParsingRun__f_cut) { | |
var parse0$3 = evidence$3; | |
} else { | |
var preRhsIndex$macro$19 = evidence$3.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$3); | |
var rhsAggregate$macro$22 = evidence$3.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$3.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$3.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29 = evidence$3; | |
} else { | |
var postRhsIndex$macro$20 = evidence$3.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$3.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29 = evidence$3.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27, evidence$3.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28); | |
} | |
; | |
if (evidence$3.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$3.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$3.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$3 = res$macro$29; | |
} | |
} | |
; | |
if (!parse0$3.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$3; | |
} else { | |
var arg1$1 = parse0$3.Lfastparse_ParsingRun__f_successValue; | |
if (arg1$1 === null) { | |
throw new $c_s_MatchError(arg1$1); | |
} | |
; | |
var start2 = arg1$1.T3__f__1 | 0; | |
var node$1 = arg1$1.T3__f__2; | |
var end = arg1$1.T3__f__3 | 0; | |
parse0$3.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node$1, start2, end); | |
var x1$7 = parse0$3; | |
} | |
; | |
if (instrument$1) { | |
evidence$3.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$30 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$30); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$3.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("Sequence").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("Sequence").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("Sequence").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$37 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$37); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.Term__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$4) { | |
var startIndex = evidence$4.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$4.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$4.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("Term").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$4.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$4.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$4.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$4.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$4.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$4.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$4.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$4); | |
if (!evidence$4.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$4.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$4.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$4.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$4.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$4.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$4.Lfastparse_ParsingRun__f_isSuccess && evidence$4.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$4.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var parse0$1 = this.Atom__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$4); | |
if (parse0$1.Lfastparse_ParsingRun__f_isSuccess) { | |
var oldCapturing = parse0$1.Lfastparse_ParsingRun__f_noDropBuffer; | |
var successValue = parse0$1.Lfastparse_ParsingRun__f_successValue; | |
parse0$1.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
parse0$1.freshSuccessUnit__Lfastparse_ParsingRun(); | |
parse0$1.Lfastparse_ParsingRun__f_noDropBuffer = oldCapturing; | |
if (!(!parse0$1.Lfastparse_ParsingRun__f_isSuccess && parse0$1.Lfastparse_ParsingRun__f_cut)) { | |
var arg1 = successValue; | |
matchEnd8: { | |
if (arg1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LookAhead) { | |
var x2 = arg1; | |
if (!this.Lcodes_quine_labs_recheck_regexp_Parser__f_additional) { | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(x2, evidence$4); | |
break matchEnd8; | |
} | |
} | |
; | |
if (arg1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LookBehind) { | |
var x3 = arg1; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(x3, evidence$4); | |
break matchEnd8; | |
} | |
; | |
if (arg1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$WordBoundary) { | |
var x4 = arg1; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(x4, evidence$4); | |
break matchEnd8; | |
} | |
; | |
if (arg1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LineBegin) { | |
var x5 = arg1; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(x5, evidence$4); | |
break matchEnd8; | |
} | |
; | |
if (arg1 instanceof $c_Lcodes_quine_labs_recheck_regexp_Pattern$LineEnd) { | |
var x6 = arg1; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(x6, evidence$4); | |
break matchEnd8; | |
} | |
; | |
var oldCut = evidence$4.Lfastparse_ParsingRun__f_cut; | |
evidence$4.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$4.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var parse0$2 = this.Quantifier__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$4); | |
if (!parse0$2.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var arg1$1 = parse0$2.Lfastparse_ParsingRun__f_successValue; | |
parse0$2.Lfastparse_ParsingRun__f_successValue = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Repeat(arg1$1, arg1); | |
} | |
; | |
var lhsMsg = evidence$4.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$4.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$4.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$4.Lfastparse_ParsingRun__f_cut = !!(evidence$4.Lfastparse_ParsingRun__f_cut | oldCut); | |
} else if (evidence$4.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures = evidence$4.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$4.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures) { | |
evidence$4.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$4.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(arg1, evidence$4); | |
var rhsMsg = evidence$4.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$4.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut); | |
if (!evidence$4.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$4.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$4.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$4.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$4.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet, msgToAggregate, false); | |
} | |
} | |
} | |
} | |
} | |
; | |
var rhsAggregate$macro$7 = evidence$4.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$4.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$4.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14 = evidence$4; | |
} else { | |
var postRhsIndex$macro$5 = evidence$4.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$4.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14 = evidence$4.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$4.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13); | |
} | |
; | |
if (evidence$4.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$4.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4 === evidence$4.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$4.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$5 = evidence$4; | |
} else { | |
var postLhsIndex$macro$18 = evidence$4.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$4.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$4.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17) { | |
evidence$4.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27 = evidence$4.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$4.Lfastparse_ParsingRun__f_isSuccess && evidence$4.Lfastparse_ParsingRun__f_cut) { | |
var parse0$5 = evidence$4; | |
} else { | |
var preRhsIndex$macro$19 = evidence$4.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$4); | |
var rhsAggregate$macro$22 = evidence$4.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$4.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$4.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29 = evidence$4; | |
} else { | |
var postRhsIndex$macro$20 = evidence$4.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$4.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29 = evidence$4.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27, evidence$4.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28); | |
} | |
; | |
if (evidence$4.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$4.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$4.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$5 = res$macro$29; | |
} | |
} | |
; | |
if (!parse0$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$5; | |
} else { | |
var arg1$2 = parse0$5.Lfastparse_ParsingRun__f_successValue; | |
if (arg1$2 === null) { | |
throw new $c_s_MatchError(arg1$2); | |
} | |
; | |
var start2 = arg1$2.T3__f__1 | 0; | |
var node = arg1$2.T3__f__2; | |
var end = arg1$2.T3__f__3 | 0; | |
parse0$5.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node, start2, end); | |
var x1$7 = parse0$5; | |
} | |
; | |
if (instrument$1) { | |
evidence$4.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$15 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$15); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$4.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("Term").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("Term").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("Term").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$22 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$22); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.Quantifier__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$5) { | |
var startIndex = evidence$5.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$5.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$5.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("Quantifier").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$5.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$5.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$5.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$5.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$5); | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$5.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess && evidence$5.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var oldCut = evidence$5.Lfastparse_ParsingRun__f_cut; | |
evidence$5.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$2 = evidence$5.Lfastparse_ParsingRun__f_cut; | |
evidence$5.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$2 = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$3 = evidence$5.Lfastparse_ParsingRun__f_cut; | |
evidence$5.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$3 = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$4 = evidence$5.Lfastparse_ParsingRun__f_cut; | |
evidence$5.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$4 = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$5 = evidence$5.Lfastparse_ParsingRun__f_cut; | |
evidence$5.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$5 = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$6 = evidence$5.Lfastparse_ParsingRun__f_cut; | |
evidence$5.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$6 = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
this.NormalizedQuantifier__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$5); | |
var lhsMsg = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$5.Lfastparse_ParsingRun__f_cut = !!(evidence$5.Lfastparse_ParsingRun__f_cut | oldCut$6); | |
} else if (evidence$5.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures = evidence$5.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$5.Lfastparse_ParsingRun__f_index = startPos$6; | |
if (verboseFailures) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$6, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$5.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$4 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var input$macro$13 = evidence$5.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index = evidence$5.Lfastparse_ParsingRun__f_index; | |
var end = 2 + index | 0; | |
var input = evidence$5.Lfastparse_ParsingRun__f_input; | |
if (input.isReachable__I__Z(-1 + end | 0)) { | |
var this$6 = input.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$6.charCodeAt(index) | 0)) === 42) { | |
var index$1 = 1 + index | 0; | |
var this$7 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$7.charCodeAt(index$1) | 0)) === 63; | |
} else { | |
var $$x1 = false; | |
} | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$5.freshSuccessUnit__I__Lfastparse_ParsingRun(end); | |
} else { | |
evidence$5.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"*?"')); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$5 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$8 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$11 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$5 > preLhsIndex$macro$4) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$5.Lfastparse_ParsingRun__f_isSuccess && evidence$5.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$6 = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Star(true), evidence$5); | |
var rhsAggregate$macro$9 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$10 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$7 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$12 = postRhsIndex$macro$7 > preRhsIndex$macro$6; | |
var nextIndex$macro$15 = !rhsMadeProgress$macro$12 && input$macro$13.isReachable__I__Z(postRhsIndex$macro$7) ? postLhsIndex$macro$5 : postRhsIndex$macro$7; | |
if (rhsMadeProgress$macro$12) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
var v = evidence$5.Lfastparse_ParsingRun__f_successValue; | |
evidence$5.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$15); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$4, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$11, rhsMsg$macro$10), lhsAggregate$macro$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$9), preRhsIndex$macro$6 === evidence$5.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$5.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut$6); | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$5.freshFailure__I__Lfastparse_ParsingRun(startPos$6); | |
} | |
; | |
evidence$5.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$6, msgToSet, msgToAggregate, false); | |
} | |
} | |
; | |
var lhsMsg$2 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$2 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$5.Lfastparse_ParsingRun__f_cut = !!(evidence$5.Lfastparse_ParsingRun__f_cut | oldCut$5); | |
} else if (evidence$5.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$2 = evidence$5.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$5.Lfastparse_ParsingRun__f_index = startPos$5; | |
if (verboseFailures$2) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$5, lhsMsg$2, lhsAggregate$2, false); | |
} | |
; | |
evidence$5.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$19 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var input$macro$28 = evidence$5.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input$2 = evidence$5.Lfastparse_ParsingRun__f_input; | |
var index$2 = evidence$5.Lfastparse_ParsingRun__f_index; | |
if (input$2.isReachable__I__Z(index$2)) { | |
var this$11 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x2 = (65535 & (this$11.charCodeAt(index$2) | 0)) === 42; | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
evidence$5.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$2 | 0); | |
} else { | |
evidence$5.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateTerminal__I__F0__V(index$2, new $c_sjsr_AnonFunction0(() => '"*"')); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$20 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$23 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$26 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$20 > preLhsIndex$macro$19) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$5.Lfastparse_ParsingRun__f_isSuccess && evidence$5.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$21 = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Star(false), evidence$5); | |
var rhsAggregate$macro$24 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$25 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$22 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$27 = postRhsIndex$macro$22 > preRhsIndex$macro$21; | |
var nextIndex$macro$30 = !rhsMadeProgress$macro$27 && input$macro$28.isReachable__I__Z(postRhsIndex$macro$22) ? postLhsIndex$macro$20 : postRhsIndex$macro$22; | |
if (rhsMadeProgress$macro$27) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
var v$1 = evidence$5.Lfastparse_ParsingRun__f_successValue; | |
evidence$5.freshSuccess__O__I__Lfastparse_ParsingRun(v$1, nextIndex$macro$30); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$19, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$26, rhsMsg$macro$25), lhsAggregate$macro$23.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$24), preRhsIndex$macro$21 === evidence$5.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$2 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$2 = evidence$5.Lfastparse_ParsingRun__f_cut; | |
var endCut$2 = !!(rhsCut$2 | oldCut$5); | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$2) { | |
evidence$5.freshFailure__I__Lfastparse_ParsingRun(startPos$5); | |
} | |
; | |
evidence$5.Lfastparse_ParsingRun__f_cut = endCut$2; | |
if (verboseFailures$2) { | |
var msgToSet$1 = lhsMsg$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$2); | |
var rassoc$3$2 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$1 = lhsAggregate$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$2); | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$5, msgToSet$1, msgToAggregate$1, false); | |
} | |
} | |
; | |
var lhsMsg$3 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$3 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$5.Lfastparse_ParsingRun__f_cut = !!(evidence$5.Lfastparse_ParsingRun__f_cut | oldCut$4); | |
} else if (evidence$5.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$3 = evidence$5.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$5.Lfastparse_ParsingRun__f_index = startPos$4; | |
if (verboseFailures$3) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$4, lhsMsg$3, lhsAggregate$3, false); | |
} | |
; | |
evidence$5.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$36 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var input$macro$45 = evidence$5.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$3 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var end$2 = 2 + index$3 | 0; | |
var input$3 = evidence$5.Lfastparse_ParsingRun__f_input; | |
if (input$3.isReachable__I__Z(-1 + end$2 | 0)) { | |
var this$15 = input$3.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$15.charCodeAt(index$3) | 0)) === 43) { | |
var index$4 = 1 + index$3 | 0; | |
var this$16 = input$3.Lfastparse_IndexedParserInput__f_data; | |
var $$x3 = (65535 & (this$16.charCodeAt(index$4) | 0)) === 63; | |
} else { | |
var $$x3 = false; | |
} | |
} else { | |
var $$x3 = false; | |
} | |
; | |
if ($$x3) { | |
evidence$5.freshSuccessUnit__I__Lfastparse_ParsingRun(end$2); | |
} else { | |
evidence$5.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateTerminal__I__F0__V(index$3, new $c_sjsr_AnonFunction0(() => '"+?"')); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$37 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$40 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$43 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$37 > preLhsIndex$macro$36) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$5.Lfastparse_ParsingRun__f_isSuccess && evidence$5.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$38 = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Plus(true), evidence$5); | |
var rhsAggregate$macro$41 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$42 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$39 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$44 = postRhsIndex$macro$39 > preRhsIndex$macro$38; | |
var nextIndex$macro$47 = !rhsMadeProgress$macro$44 && input$macro$45.isReachable__I__Z(postRhsIndex$macro$39) ? postLhsIndex$macro$37 : postRhsIndex$macro$39; | |
if (rhsMadeProgress$macro$44) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
var v$2 = evidence$5.Lfastparse_ParsingRun__f_successValue; | |
evidence$5.freshSuccess__O__I__Lfastparse_ParsingRun(v$2, nextIndex$macro$47); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$36, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$43, rhsMsg$macro$42), lhsAggregate$macro$40.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$41), preRhsIndex$macro$38 === evidence$5.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$3 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$3 = evidence$5.Lfastparse_ParsingRun__f_cut; | |
var endCut$3 = !!(rhsCut$3 | oldCut$4); | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$3) { | |
evidence$5.freshFailure__I__Lfastparse_ParsingRun(startPos$4); | |
} | |
; | |
evidence$5.Lfastparse_ParsingRun__f_cut = endCut$3; | |
if (verboseFailures$3) { | |
var msgToSet$2 = lhsMsg$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$3); | |
var rassoc$3$4 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$2 = lhsAggregate$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$4); | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$4, msgToSet$2, msgToAggregate$2, false); | |
} | |
} | |
; | |
var lhsMsg$4 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$4 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$5.Lfastparse_ParsingRun__f_cut = !!(evidence$5.Lfastparse_ParsingRun__f_cut | oldCut$3); | |
} else if (evidence$5.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$4 = evidence$5.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$5.Lfastparse_ParsingRun__f_index = startPos$3; | |
if (verboseFailures$4) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, lhsMsg$4, lhsAggregate$4, false); | |
} | |
; | |
evidence$5.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$51 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var input$macro$60 = evidence$5.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input$4 = evidence$5.Lfastparse_ParsingRun__f_input; | |
var index$4$1 = evidence$5.Lfastparse_ParsingRun__f_index; | |
if (input$4.isReachable__I__Z(index$4$1)) { | |
var this$20 = input$4.Lfastparse_IndexedParserInput__f_data; | |
var $$x4 = (65535 & (this$20.charCodeAt(index$4$1) | 0)) === 43; | |
} else { | |
var $$x4 = false; | |
} | |
; | |
if ($$x4) { | |
evidence$5.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$4$1 | 0); | |
} else { | |
evidence$5.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateTerminal__I__F0__V(index$4$1, new $c_sjsr_AnonFunction0(() => '"+"')); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$52 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$55 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$58 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$52 > preLhsIndex$macro$51) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$5.Lfastparse_ParsingRun__f_isSuccess && evidence$5.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$53 = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Plus(false), evidence$5); | |
var rhsAggregate$macro$56 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$57 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$54 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$59 = postRhsIndex$macro$54 > preRhsIndex$macro$53; | |
var nextIndex$macro$62 = !rhsMadeProgress$macro$59 && input$macro$60.isReachable__I__Z(postRhsIndex$macro$54) ? postLhsIndex$macro$52 : postRhsIndex$macro$54; | |
if (rhsMadeProgress$macro$59) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
var v$3 = evidence$5.Lfastparse_ParsingRun__f_successValue; | |
evidence$5.freshSuccess__O__I__Lfastparse_ParsingRun(v$3, nextIndex$macro$62); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$51, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$58, rhsMsg$macro$57), lhsAggregate$macro$55.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$56), preRhsIndex$macro$53 === evidence$5.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$4 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$4 = evidence$5.Lfastparse_ParsingRun__f_cut; | |
var endCut$4 = !!(rhsCut$4 | oldCut$3); | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$4) { | |
evidence$5.freshFailure__I__Lfastparse_ParsingRun(startPos$3); | |
} | |
; | |
evidence$5.Lfastparse_ParsingRun__f_cut = endCut$4; | |
if (verboseFailures$4) { | |
var msgToSet$3 = lhsMsg$4.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$4); | |
var rassoc$3$5 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$3 = lhsAggregate$4.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$5); | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, msgToSet$3, msgToAggregate$3, false); | |
} | |
} | |
; | |
var lhsMsg$5 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$5 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$5.Lfastparse_ParsingRun__f_cut = !!(evidence$5.Lfastparse_ParsingRun__f_cut | oldCut$2); | |
} else if (evidence$5.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$5 = evidence$5.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$5.Lfastparse_ParsingRun__f_index = startPos$2; | |
if (verboseFailures$5) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, lhsMsg$5, lhsAggregate$5, false); | |
} | |
; | |
evidence$5.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$68 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var input$macro$77 = evidence$5.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$5 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var end$3 = 2 + index$5 | 0; | |
var input$5 = evidence$5.Lfastparse_ParsingRun__f_input; | |
if (input$5.isReachable__I__Z(-1 + end$3 | 0)) { | |
var this$24 = input$5.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$24.charCodeAt(index$5) | 0)) === 63) { | |
var index$6 = 1 + index$5 | 0; | |
var this$25 = input$5.Lfastparse_IndexedParserInput__f_data; | |
var $$x5 = (65535 & (this$25.charCodeAt(index$6) | 0)) === 63; | |
} else { | |
var $$x5 = false; | |
} | |
} else { | |
var $$x5 = false; | |
} | |
; | |
if ($$x5) { | |
evidence$5.freshSuccessUnit__I__Lfastparse_ParsingRun(end$3); | |
} else { | |
evidence$5.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateTerminal__I__F0__V(index$5, new $c_sjsr_AnonFunction0(() => '"??"')); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$69 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$72 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$75 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$69 > preLhsIndex$macro$68) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$5.Lfastparse_ParsingRun__f_isSuccess && evidence$5.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$70 = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Question(true), evidence$5); | |
var rhsAggregate$macro$73 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$74 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$71 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$76 = postRhsIndex$macro$71 > preRhsIndex$macro$70; | |
var nextIndex$macro$79 = !rhsMadeProgress$macro$76 && input$macro$77.isReachable__I__Z(postRhsIndex$macro$71) ? postLhsIndex$macro$69 : postRhsIndex$macro$71; | |
if (rhsMadeProgress$macro$76) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
var v$4 = evidence$5.Lfastparse_ParsingRun__f_successValue; | |
evidence$5.freshSuccess__O__I__Lfastparse_ParsingRun(v$4, nextIndex$macro$79); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$68, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$75, rhsMsg$macro$74), lhsAggregate$macro$72.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$73), preRhsIndex$macro$70 === evidence$5.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$5 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$5 = evidence$5.Lfastparse_ParsingRun__f_cut; | |
var endCut$5 = !!(rhsCut$5 | oldCut$2); | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$5) { | |
evidence$5.freshFailure__I__Lfastparse_ParsingRun(startPos$2); | |
} | |
; | |
evidence$5.Lfastparse_ParsingRun__f_cut = endCut$5; | |
if (verboseFailures$5) { | |
var msgToSet$4 = lhsMsg$5.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$5); | |
var rassoc$3$6 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$4 = lhsAggregate$5.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$6); | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, msgToSet$4, msgToAggregate$4, false); | |
} | |
} | |
; | |
var lhsMsg$6 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$6 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$5.Lfastparse_ParsingRun__f_cut = !!(evidence$5.Lfastparse_ParsingRun__f_cut | oldCut); | |
} else if (!evidence$5.Lfastparse_ParsingRun__f_cut) { | |
var verboseFailures$6 = evidence$5.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$5.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures$6) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg$6, lhsAggregate$6, false); | |
} | |
; | |
evidence$5.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$83 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var input$macro$92 = evidence$5.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input$6 = evidence$5.Lfastparse_ParsingRun__f_input; | |
var index$6$1 = evidence$5.Lfastparse_ParsingRun__f_index; | |
if (input$6.isReachable__I__Z(index$6$1)) { | |
var this$29 = input$6.Lfastparse_IndexedParserInput__f_data; | |
var $$x6 = (65535 & (this$29.charCodeAt(index$6$1) | 0)) === 63; | |
} else { | |
var $$x6 = false; | |
} | |
; | |
if ($$x6) { | |
evidence$5.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$6$1 | 0); | |
} else { | |
evidence$5.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateTerminal__I__F0__V(index$6$1, new $c_sjsr_AnonFunction0(() => '"?"')); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$84 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$87 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$90 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$84 > preLhsIndex$macro$83) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$5.Lfastparse_ParsingRun__f_isSuccess && evidence$5.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$85 = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Question(false), evidence$5); | |
var rhsAggregate$macro$88 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$89 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$86 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$91 = postRhsIndex$macro$86 > preRhsIndex$macro$85; | |
var nextIndex$macro$94 = !rhsMadeProgress$macro$91 && input$macro$92.isReachable__I__Z(postRhsIndex$macro$86) ? postLhsIndex$macro$84 : postRhsIndex$macro$86; | |
if (rhsMadeProgress$macro$91) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
var v$5 = evidence$5.Lfastparse_ParsingRun__f_successValue; | |
evidence$5.freshSuccess__O__I__Lfastparse_ParsingRun(v$5, nextIndex$macro$94); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$83, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$90, rhsMsg$macro$89), lhsAggregate$macro$87.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$88), preRhsIndex$macro$85 === evidence$5.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$6 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$6 = evidence$5.Lfastparse_ParsingRun__f_cut; | |
var endCut$6 = !!(rhsCut$6 | oldCut); | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$6) { | |
evidence$5.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$5.Lfastparse_ParsingRun__f_cut = endCut$6; | |
if (verboseFailures$6) { | |
var msgToSet$5 = lhsMsg$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$6); | |
var rassoc$3$7 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$5 = lhsAggregate$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$7); | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet$5, msgToAggregate$5, false); | |
} | |
} | |
; | |
var rhsAggregate$macro$7 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14 = evidence$5; | |
} else { | |
var postRhsIndex$macro$5 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14 = evidence$5.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$5.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4 === evidence$5.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$8 = evidence$5; | |
} else { | |
var postLhsIndex$macro$18 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27 = evidence$5.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess && evidence$5.Lfastparse_ParsingRun__f_cut) { | |
var parse0$8 = evidence$5; | |
} else { | |
var preRhsIndex$macro$19 = evidence$5.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$5); | |
var rhsAggregate$macro$22 = evidence$5.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$5.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29 = evidence$5; | |
} else { | |
var postRhsIndex$macro$20 = evidence$5.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$5.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29 = evidence$5.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27, evidence$5.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28); | |
} | |
; | |
if (evidence$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$5.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$8 = res$macro$29; | |
} | |
} | |
; | |
if (!parse0$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$8; | |
} else { | |
var arg1 = parse0$8.Lfastparse_ParsingRun__f_successValue; | |
if (arg1 === null) { | |
throw new $c_s_MatchError(arg1); | |
} | |
; | |
var start2 = arg1.T3__f__1 | 0; | |
var node = arg1.T3__f__2; | |
var end$1 = arg1.T3__f__3 | 0; | |
parse0$8.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node, start2, end$1); | |
var x1$7 = parse0$8; | |
} | |
; | |
if (instrument$1) { | |
evidence$5.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$39 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$39); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$5.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("Quantifier").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("Quantifier").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("Quantifier").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$46 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$46); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.NormalizedQuantifier__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$6) { | |
var startIndex = evidence$6.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$6.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$6.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("NormalizedQuantifier").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$62 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var input$macro$71 = evidence$6.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
this$2.UnitSequencer0__Lfastparse_Implicits$LowPriSequencer$UnitSequencer0$(); | |
var preLhsIndex$macro$47 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var input$macro$56 = evidence$6.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$3 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$7 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$3); | |
var preLhsIndex$macro$32 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var input$macro$41 = evidence$6.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$2 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$6.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
if (this.Lcodes_quine_labs_recheck_regexp_Parser__f_additional && !this.Lcodes_quine_labs_recheck_regexp_Parser__f_unicode) { | |
var input = evidence$6.Lfastparse_ParsingRun__f_input; | |
var index = evidence$6.Lfastparse_ParsingRun__f_index; | |
if (input.isReachable__I__Z(index)) { | |
var this$5 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$5.charCodeAt(index) | 0)) === 123; | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
var res = evidence$6.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index | 0); | |
} else { | |
var res = evidence$6.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$6.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$6.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"{"')); | |
} | |
} else { | |
var startIndex$2 = evidence$6.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var input$2 = evidence$6.Lfastparse_ParsingRun__f_input; | |
var index$2 = evidence$6.Lfastparse_ParsingRun__f_index; | |
if (input$2.isReachable__I__Z(index$2)) { | |
var this$7 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x2 = (65535 & (this$7.charCodeAt(index$2) | 0)) === 123; | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
var res$2 = evidence$6.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$2 | 0); | |
} else { | |
var res$2 = evidence$6.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$6.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$6.aggregateTerminal__I__F0__V(index$2, new $c_sjsr_AnonFunction0(() => '"{"')); | |
} | |
; | |
var index$3 = res$2.Lfastparse_ParsingRun__f_index; | |
if (!res$2.Lfastparse_ParsingRun__f_isSuccess) { | |
res$2.augmentFailure__I__Lfastparse_ParsingRun(index$3); | |
} else { | |
var progress = index$3 > startIndex$2; | |
if (progress) { | |
res$2.checkForDrop__Z(); | |
} | |
; | |
res$2.freshSuccess__O__Z__Lfastparse_ParsingRun(res$2.Lfastparse_ParsingRun__f_successValue, !!(res$2.Lfastparse_ParsingRun__f_cut | progress)); | |
} | |
} | |
; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$6.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess && evidence$6.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$6.Lfastparse_ParsingRun__f_index; | |
this.Digits__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$6); | |
var rhsAggregate$macro$7 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14 = evidence$6; | |
} else { | |
var postRhsIndex$macro$5 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$6.checkForDrop__Z(); | |
} | |
; | |
var v = evidence$6.Lfastparse_ParsingRun__f_successValue | 0; | |
var res$macro$14 = evidence$6.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$13); | |
} | |
; | |
if (evidence$6.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$6.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4 === evidence$6.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$33 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$36 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$39 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$33 > preLhsIndex$macro$32) { | |
evidence$6.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$42 = evidence$6.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess && evidence$6.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$34 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var oldCut = evidence$6.Lfastparse_ParsingRun__f_cut; | |
evidence$6.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$6.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$17 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$6.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input$3 = evidence$6.Lfastparse_ParsingRun__f_input; | |
var index$4 = evidence$6.Lfastparse_ParsingRun__f_index; | |
if (input$3.isReachable__I__Z(index$4)) { | |
var this$12 = input$3.Lfastparse_IndexedParserInput__f_data; | |
var $$x3 = (65535 & (this$12.charCodeAt(index$4) | 0)) === 44; | |
} else { | |
var $$x3 = false; | |
} | |
; | |
if ($$x3) { | |
evidence$6.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$4 | 0); | |
} else { | |
evidence$6.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$6.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$6.aggregateTerminal__I__F0__V(index$4, new $c_sjsr_AnonFunction0(() => '","')); | |
} | |
; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$18 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17) { | |
evidence$6.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess && evidence$6.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$19 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var oldCut$2 = evidence$6.Lfastparse_ParsingRun__f_cut; | |
evidence$6.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$2 = evidence$6.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var parse0$2 = this.Digits__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$6); | |
if (!parse0$2.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var arg1 = parse0$2.Lfastparse_ParsingRun__f_successValue | 0; | |
parse0$2.Lfastparse_ParsingRun__f_successValue = $m_s_Option$().apply__O__s_Option($m_s_Option$().apply__O__s_Option(arg1)); | |
} | |
; | |
var lhsMsg = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$6.Lfastparse_ParsingRun__f_cut = !!(evidence$6.Lfastparse_ParsingRun__f_cut | oldCut$2); | |
} else if (!evidence$6.Lfastparse_ParsingRun__f_cut) { | |
var verboseFailures = evidence$6.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$6.Lfastparse_ParsingRun__f_index = startPos$2; | |
if (verboseFailures) { | |
evidence$6.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$6.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun($m_s_Option$().apply__O__s_Option($m_s_None$()), evidence$6); | |
var rhsMsg = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$6.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut$2); | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$6.freshFailure__I__Lfastparse_ParsingRun(startPos$2); | |
} | |
; | |
evidence$6.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$6.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, msgToSet, msgToAggregate, false); | |
} | |
} | |
; | |
var rhsAggregate$macro$22 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29 = evidence$6; | |
} else { | |
var postRhsIndex$macro$20 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$6.checkForDrop__Z(); | |
} | |
; | |
var v$1 = evidence$6.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$29 = evidence$6.freshSuccess__O__I__Lfastparse_ParsingRun(v$1, nextIndex$macro$28); | |
} | |
; | |
if (evidence$6.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$6.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$6.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var lhsMsg$2 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$2 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$6.Lfastparse_ParsingRun__f_cut = !!(evidence$6.Lfastparse_ParsingRun__f_cut | oldCut); | |
} else if (!evidence$6.Lfastparse_ParsingRun__f_cut) { | |
var verboseFailures$2 = evidence$6.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$6.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures$2) { | |
evidence$6.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg$2, lhsAggregate$2, false); | |
} | |
; | |
evidence$6.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun($m_s_None$(), evidence$6); | |
var rhsMsg$2 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$2 = evidence$6.Lfastparse_ParsingRun__f_cut; | |
var endCut$2 = !!(rhsCut$2 | oldCut); | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$2) { | |
evidence$6.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$6.Lfastparse_ParsingRun__f_cut = endCut$2; | |
if (verboseFailures$2) { | |
var msgToSet$1 = lhsMsg$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$2); | |
var rassoc$3$2 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$1 = lhsAggregate$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$2); | |
evidence$6.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet$1, msgToAggregate$1, false); | |
} | |
} | |
; | |
var rhsAggregate$macro$37 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$38 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$44 = evidence$6; | |
} else { | |
var postRhsIndex$macro$35 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$40 = postRhsIndex$macro$35 > preRhsIndex$macro$34; | |
var nextIndex$macro$43 = !rhsMadeProgress$macro$40 && input$macro$41.isReachable__I__Z(postRhsIndex$macro$35) ? postLhsIndex$macro$33 : postRhsIndex$macro$35; | |
if (rhsMadeProgress$macro$40) { | |
evidence$6.checkForDrop__Z(); | |
} | |
; | |
var res$macro$44 = evidence$6.freshSuccess__O__I__Lfastparse_ParsingRun(x1$7.apply__O__O__O(lhsValue$macro$42 | 0, evidence$6.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$43); | |
} | |
; | |
if (evidence$6.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$6.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$32, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$39, rhsMsg$macro$38), lhsAggregate$macro$36.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$37), preRhsIndex$macro$34 === evidence$6.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$48 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$51 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$54 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$48 > preLhsIndex$macro$47) { | |
evidence$6.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$57 = evidence$6.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess && evidence$6.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$49 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var input$4 = evidence$6.Lfastparse_ParsingRun__f_input; | |
var index$5 = evidence$6.Lfastparse_ParsingRun__f_index; | |
if (input$4.isReachable__I__Z(index$5)) { | |
var this$18 = input$4.Lfastparse_IndexedParserInput__f_data; | |
var $$x4 = (65535 & (this$18.charCodeAt(index$5) | 0)) === 125; | |
} else { | |
var $$x4 = false; | |
} | |
; | |
if ($$x4) { | |
evidence$6.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$5 | 0); | |
} else { | |
evidence$6.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$6.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$6.aggregateTerminal__I__F0__V(index$5, new $c_sjsr_AnonFunction0(() => '"}"')); | |
} | |
; | |
var rhsAggregate$macro$52 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$53 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$59 = evidence$6; | |
} else { | |
var postRhsIndex$macro$50 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$55 = postRhsIndex$macro$50 > preRhsIndex$macro$49; | |
var nextIndex$macro$58 = !rhsMadeProgress$macro$55 && input$macro$56.isReachable__I__Z(postRhsIndex$macro$50) ? postLhsIndex$macro$48 : postRhsIndex$macro$50; | |
if (rhsMadeProgress$macro$55) { | |
evidence$6.checkForDrop__Z(); | |
} | |
; | |
var t = lhsValue$macro$57; | |
var res$macro$59 = evidence$6.freshSuccess__O__I__Lfastparse_ParsingRun(t, nextIndex$macro$58); | |
} | |
; | |
if (evidence$6.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$6.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$47, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$54, rhsMsg$macro$53), lhsAggregate$macro$51.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$52), preRhsIndex$macro$49 === evidence$6.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$8 = evidence$6; | |
} else { | |
var postLhsIndex$macro$63 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$66 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$69 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$63 > preLhsIndex$macro$62) { | |
evidence$6.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$72 = evidence$6.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess && evidence$6.Lfastparse_ParsingRun__f_cut) { | |
var parse0$8 = evidence$6; | |
} else { | |
var preRhsIndex$macro$64 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var oldCut$3 = evidence$6.Lfastparse_ParsingRun__f_cut; | |
evidence$6.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$3 = evidence$6.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var input$5 = evidence$6.Lfastparse_ParsingRun__f_input; | |
var index$6 = evidence$6.Lfastparse_ParsingRun__f_index; | |
if (input$5.isReachable__I__Z(index$6)) { | |
var this$20 = input$5.Lfastparse_IndexedParserInput__f_data; | |
var $$x5 = (65535 & (this$20.charCodeAt(index$6) | 0)) === 63; | |
} else { | |
var $$x5 = false; | |
} | |
; | |
if ($$x5) { | |
var res$5 = evidence$6.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$6 | 0); | |
} else { | |
var res$5 = evidence$6.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$6.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$6.aggregateTerminal__I__F0__V(index$6, new $c_sjsr_AnonFunction0(() => '"?"')); | |
} | |
; | |
if (!res$5.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
res$5.Lfastparse_ParsingRun__f_successValue = true; | |
} | |
; | |
var lhsMsg$3 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$3 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$6.Lfastparse_ParsingRun__f_cut = !!(evidence$6.Lfastparse_ParsingRun__f_cut | oldCut$3); | |
} else if (!evidence$6.Lfastparse_ParsingRun__f_cut) { | |
var verboseFailures$3 = evidence$6.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$6.Lfastparse_ParsingRun__f_index = startPos$3; | |
if (verboseFailures$3) { | |
evidence$6.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, lhsMsg$3, lhsAggregate$3, false); | |
} | |
; | |
evidence$6.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(false, evidence$6); | |
var rhsMsg$3 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$3 = evidence$6.Lfastparse_ParsingRun__f_cut; | |
var endCut$3 = !!(rhsCut$3 | oldCut$3); | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$3) { | |
evidence$6.freshFailure__I__Lfastparse_ParsingRun(startPos$3); | |
} | |
; | |
evidence$6.Lfastparse_ParsingRun__f_cut = endCut$3; | |
if (verboseFailures$3) { | |
var msgToSet$2 = lhsMsg$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$3); | |
var rassoc$3$4 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$2 = lhsAggregate$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$4); | |
evidence$6.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, msgToSet$2, msgToAggregate$2, false); | |
} | |
} | |
; | |
var rhsAggregate$macro$67 = evidence$6.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$68 = evidence$6.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$6.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$74 = evidence$6; | |
} else { | |
var postRhsIndex$macro$65 = evidence$6.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$70 = postRhsIndex$macro$65 > preRhsIndex$macro$64; | |
var nextIndex$macro$73 = !rhsMadeProgress$macro$70 && input$macro$71.isReachable__I__Z(postRhsIndex$macro$65) ? postLhsIndex$macro$63 : postRhsIndex$macro$65; | |
if (rhsMadeProgress$macro$70) { | |
evidence$6.checkForDrop__Z(); | |
} | |
; | |
var res$macro$74 = evidence$6.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$72, !!evidence$6.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$73); | |
} | |
; | |
if (evidence$6.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$6.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$62, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$69, rhsMsg$macro$68), lhsAggregate$macro$66.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$67), preRhsIndex$macro$64 === evidence$6.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$8 = res$macro$74; | |
} | |
} | |
; | |
if (!parse0$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$24 = parse0$8; | |
} else { | |
var arg1$1 = parse0$8.Lfastparse_ParsingRun__f_successValue; | |
matchEnd13: { | |
var $$x6; | |
if (arg1$1 !== null) { | |
var min = arg1$1.T3__f__1 | 0; | |
var p2 = arg1$1.T3__f__2; | |
var isLazy = !!arg1$1.T3__f__3; | |
if (p2 instanceof $c_s_Some) { | |
var x3 = p2; | |
var p4 = x3.s_Some__f_value; | |
if (p4 instanceof $c_s_Some) { | |
var x5 = p4; | |
var max = x5.s_Some__f_value | 0; | |
var $$x6 = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Bounded(min, max, isLazy); | |
break matchEnd13; | |
} | |
} | |
} | |
; | |
if (arg1$1 !== null) { | |
var min$2 = arg1$1.T3__f__1 | 0; | |
var p6 = arg1$1.T3__f__2; | |
var isLazy$2 = !!arg1$1.T3__f__3; | |
if (p6 instanceof $c_s_Some) { | |
var x7 = p6; | |
var p8 = x7.s_Some__f_value; | |
var x = $m_s_None$(); | |
if (x === p8) { | |
var $$x6 = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Unbounded(min$2, isLazy$2); | |
break matchEnd13; | |
} | |
} | |
} | |
; | |
if (arg1$1 !== null) { | |
var n = arg1$1.T3__f__1 | 0; | |
var p10 = arg1$1.T3__f__2; | |
var isLazy$3 = !!arg1$1.T3__f__3; | |
var x$3 = $m_s_None$(); | |
if (x$3 === p10) { | |
var $$x6 = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Quantifier$Exact(n, isLazy$3); | |
break matchEnd13; | |
} | |
} | |
; | |
throw new $c_s_MatchError(arg1$1); | |
} | |
; | |
parse0$8.Lfastparse_ParsingRun__f_successValue = $$x6; | |
var x1$24 = parse0$8; | |
} | |
; | |
if (instrument) { | |
evidence$6.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("NormalizedQuantifier").Lsourcecode_Name__f_value, x1$24.Lfastparse_ParsingRun__f_index, x1$24.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$24.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("NormalizedQuantifier").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$24.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$24.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$24.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$24.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("NormalizedQuantifier").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex); | |
var this$30 = x1$24.Lfastparse_ParsingRun__f_failureStack; | |
x1$24.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$30); | |
} | |
} | |
; | |
return x1$24; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.Atom__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$7) { | |
var startIndex = evidence$7.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$7.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$7.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("Atom").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$7.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$7.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$7.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$7.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$7); | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$7.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess && evidence$7.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var oldCut = evidence$7.Lfastparse_ParsingRun__f_cut; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$2 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$2 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$3 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$3 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$4 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$4 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$5 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$5 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$6 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$6 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$7 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$7 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$8 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$8 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$2$1 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var input$macro$11$1 = evidence$7.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input = evidence$7.Lfastparse_ParsingRun__f_input; | |
var index = evidence$7.Lfastparse_ParsingRun__f_index; | |
if (input.isReachable__I__Z(index)) { | |
var this$5 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$5.charCodeAt(index) | 0)) === 46; | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$7.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index | 0); | |
} else { | |
evidence$7.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"."')); | |
} | |
; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3$1 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6$1 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9$1 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3$1 > preLhsIndex$macro$2$1) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess && evidence$7.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4$1 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Dot(), evidence$7); | |
var rhsAggregate$macro$7 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14 = evidence$7; | |
} else { | |
var postRhsIndex$macro$5 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4$1; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11$1.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3$1 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
var v = evidence$7.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$14 = evidence$7.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$13); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2$1, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9$1, rhsMsg$macro$8), lhsAggregate$macro$6$1.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4$1 === evidence$7.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var lhsMsg = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$7.Lfastparse_ParsingRun__f_cut = !!(evidence$7.Lfastparse_ParsingRun__f_cut | oldCut$8); | |
} else if (evidence$7.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures = evidence$7.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$7.Lfastparse_ParsingRun__f_index = startPos$8; | |
if (verboseFailures) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$8, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$17$1 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var input$macro$26$1 = evidence$7.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input$2 = evidence$7.Lfastparse_ParsingRun__f_input; | |
var index$2 = evidence$7.Lfastparse_ParsingRun__f_index; | |
if (input$2.isReachable__I__Z(index$2)) { | |
var this$10 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x2 = (65535 & (this$10.charCodeAt(index$2) | 0)) === 94; | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
evidence$7.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$2 | 0); | |
} else { | |
evidence$7.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateTerminal__I__F0__V(index$2, new $c_sjsr_AnonFunction0(() => '"^"')); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$18 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17$1) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$7.Lfastparse_ParsingRun__f_isSuccess && evidence$7.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$19 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$LineBegin(), evidence$7); | |
var rhsAggregate$macro$22 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$20 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26$1.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
var v$1 = evidence$7.Lfastparse_ParsingRun__f_successValue; | |
evidence$7.freshSuccess__O__I__Lfastparse_ParsingRun(v$1, nextIndex$macro$28); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17$1, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$7.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$7.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut$8); | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$7.freshFailure__I__Lfastparse_ParsingRun(startPos$8); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$8, msgToSet, msgToAggregate, false); | |
} | |
} | |
; | |
var lhsMsg$2 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$2 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$7.Lfastparse_ParsingRun__f_cut = !!(evidence$7.Lfastparse_ParsingRun__f_cut | oldCut$7); | |
} else if (evidence$7.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$2 = evidence$7.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$7.Lfastparse_ParsingRun__f_index = startPos$7; | |
if (verboseFailures$2) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$7, lhsMsg$2, lhsAggregate$2, false); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$32 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var input$macro$41 = evidence$7.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input$3 = evidence$7.Lfastparse_ParsingRun__f_input; | |
var index$3 = evidence$7.Lfastparse_ParsingRun__f_index; | |
if (input$3.isReachable__I__Z(index$3)) { | |
var this$14 = input$3.Lfastparse_IndexedParserInput__f_data; | |
var $$x3 = (65535 & (this$14.charCodeAt(index$3) | 0)) === 36; | |
} else { | |
var $$x3 = false; | |
} | |
; | |
if ($$x3) { | |
evidence$7.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$3 | 0); | |
} else { | |
evidence$7.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateTerminal__I__F0__V(index$3, new $c_sjsr_AnonFunction0(() => '"$"')); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$33 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$36 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$39 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$33 > preLhsIndex$macro$32) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$7.Lfastparse_ParsingRun__f_isSuccess && evidence$7.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$34 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$LineEnd(), evidence$7); | |
var rhsAggregate$macro$37 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$38 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$35 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$40 = postRhsIndex$macro$35 > preRhsIndex$macro$34; | |
var nextIndex$macro$43 = !rhsMadeProgress$macro$40 && input$macro$41.isReachable__I__Z(postRhsIndex$macro$35) ? postLhsIndex$macro$33 : postRhsIndex$macro$35; | |
if (rhsMadeProgress$macro$40) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
var v$2 = evidence$7.Lfastparse_ParsingRun__f_successValue; | |
evidence$7.freshSuccess__O__I__Lfastparse_ParsingRun(v$2, nextIndex$macro$43); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$32, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$39, rhsMsg$macro$38), lhsAggregate$macro$36.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$37), preRhsIndex$macro$34 === evidence$7.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$2 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$2 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
var endCut$2 = !!(rhsCut$2 | oldCut$7); | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$2) { | |
evidence$7.freshFailure__I__Lfastparse_ParsingRun(startPos$7); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = endCut$2; | |
if (verboseFailures$2) { | |
var msgToSet$1 = lhsMsg$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$2); | |
var rassoc$3$3 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$1 = lhsAggregate$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$3); | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$7, msgToSet$1, msgToAggregate$1, false); | |
} | |
} | |
; | |
var lhsMsg$3 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$3 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$7.Lfastparse_ParsingRun__f_cut = !!(evidence$7.Lfastparse_ParsingRun__f_cut | oldCut$6); | |
} else if (evidence$7.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$3 = evidence$7.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$7.Lfastparse_ParsingRun__f_index = startPos$6; | |
if (verboseFailures$3) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$6, lhsMsg$3, lhsAggregate$3, false); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
this.Class__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$7); | |
var rhsMsg$3 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$3 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
var endCut$3 = !!(rhsCut$3 | oldCut$6); | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$3) { | |
evidence$7.freshFailure__I__Lfastparse_ParsingRun(startPos$6); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = endCut$3; | |
if (verboseFailures$3) { | |
var msgToSet$2 = lhsMsg$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$3); | |
var rassoc$3$4 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$2 = lhsAggregate$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$4); | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$6, msgToSet$2, msgToAggregate$2, false); | |
} | |
} | |
; | |
var lhsMsg$4 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$4 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$7.Lfastparse_ParsingRun__f_cut = !!(evidence$7.Lfastparse_ParsingRun__f_cut | oldCut$5); | |
} else if (evidence$7.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$4 = evidence$7.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$7.Lfastparse_ParsingRun__f_index = startPos$5; | |
if (verboseFailures$4) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$5, lhsMsg$4, lhsAggregate$4, false); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
this.Escape__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$7); | |
var rhsMsg$4 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$4 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
var endCut$4 = !!(rhsCut$4 | oldCut$5); | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$4) { | |
evidence$7.freshFailure__I__Lfastparse_ParsingRun(startPos$5); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = endCut$4; | |
if (verboseFailures$4) { | |
var msgToSet$3 = lhsMsg$4.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$4); | |
var rassoc$3$5 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$3 = lhsAggregate$4.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$5); | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$5, msgToSet$3, msgToAggregate$3, false); | |
} | |
} | |
; | |
var lhsMsg$5 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$5 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$7.Lfastparse_ParsingRun__f_cut = !!(evidence$7.Lfastparse_ParsingRun__f_cut | oldCut$4); | |
} else if (evidence$7.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$5 = evidence$7.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$7.Lfastparse_ParsingRun__f_index = startPos$4; | |
if (verboseFailures$5) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$4, lhsMsg$5, lhsAggregate$5, false); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
this.Paren__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$7); | |
var rhsMsg$5 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$5 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
var endCut$5 = !!(rhsCut$5 | oldCut$4); | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$5) { | |
evidence$7.freshFailure__I__Lfastparse_ParsingRun(startPos$4); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = endCut$5; | |
if (verboseFailures$5) { | |
var msgToSet$4 = lhsMsg$5.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$5); | |
var rassoc$3$6 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$4 = lhsAggregate$5.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$6); | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$4, msgToSet$4, msgToAggregate$4, false); | |
} | |
} | |
; | |
var lhsMsg$6 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$6 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$7.Lfastparse_ParsingRun__f_cut = !!(evidence$7.Lfastparse_ParsingRun__f_cut | oldCut$3); | |
} else if (evidence$7.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$6 = evidence$7.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$7.Lfastparse_ParsingRun__f_index = startPos$3; | |
if (verboseFailures$6) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, lhsMsg$6, lhsAggregate$6, false); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$47 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var input$macro$56 = evidence$7.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$4 = evidence$7.Lfastparse_ParsingRun__f_index; | |
if (!evidence$7.Lfastparse_ParsingRun__f_input.isReachable__I__Z(index$4)) { | |
evidence$7.freshFailure__Lfastparse_ParsingRun(); | |
} else { | |
var this$21 = evidence$7.Lfastparse_ParsingRun__f_input; | |
var index$1 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var this$22 = this$21.Lfastparse_IndexedParserInput__f_data; | |
var x1$21 = 65535 & (this$22.charCodeAt(index$1) | 0); | |
switch (x1$21) { | |
case 42: { | |
var x1$22 = true; | |
break; | |
} | |
case 43: { | |
var x1$22 = true; | |
break; | |
} | |
case 63: { | |
var x1$22 = true; | |
break; | |
} | |
case 41: { | |
var x1$22 = true; | |
break; | |
} | |
case 124: { | |
var x1$22 = true; | |
break; | |
} | |
default: { | |
var x1$22 = false; | |
} | |
} | |
; | |
if (x1$22 === true) { | |
evidence$7.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$4 | 0); | |
} else { | |
if (x1$22 !== false) { | |
throw new $c_s_MatchError(x1$22); | |
} | |
; | |
evidence$7.freshFailure__Lfastparse_ParsingRun(); | |
} | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateTerminal__I__F0__V(index$4, new $c_sjsr_AnonFunction0(() => "[*+?)|]")); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$48 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$51 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$54 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
evidence$7.Lfastparse_ParsingRun__f_cut = true; | |
if (postLhsIndex$macro$48 > preLhsIndex$macro$47) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$7.Lfastparse_ParsingRun__f_isSuccess && evidence$7.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$49 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Fail__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$7); | |
var rhsAggregate$macro$52 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$53 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$7.Lfastparse_ParsingRun__f_cut = true; | |
} else { | |
var postRhsIndex$macro$50 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$55 = postRhsIndex$macro$50 > preRhsIndex$macro$49; | |
var nextIndex$macro$58 = !rhsMadeProgress$macro$55 && input$macro$56.isReachable__I__Z(postRhsIndex$macro$50) ? postLhsIndex$macro$48 : postRhsIndex$macro$50; | |
if (rhsMadeProgress$macro$55) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
var $$x4; | |
throw new $c_jl_ClassCastException(); | |
evidence$7.freshSuccess__O__I__Lfastparse_ParsingRun($$x4, nextIndex$macro$58); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$47, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$54, rhsMsg$macro$53), lhsAggregate$macro$51.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$52), preRhsIndex$macro$49 === evidence$7.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$6 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$6 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
var endCut$6 = !!(rhsCut$6 | oldCut$3); | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$6) { | |
evidence$7.freshFailure__I__Lfastparse_ParsingRun(startPos$3); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = endCut$6; | |
if (verboseFailures$6) { | |
var msgToSet$5 = lhsMsg$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$6); | |
var rassoc$3$7 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$5 = lhsAggregate$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$7); | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, msgToSet$5, msgToAggregate$5, false); | |
} | |
} | |
; | |
var lhsMsg$7 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$7 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$7.Lfastparse_ParsingRun__f_cut = !!(evidence$7.Lfastparse_ParsingRun__f_cut | oldCut$2); | |
} else if (evidence$7.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$7 = evidence$7.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$7.Lfastparse_ParsingRun__f_index = startPos$2; | |
if (verboseFailures$7) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, lhsMsg$7, lhsAggregate$7, false); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
if (this.Lcodes_quine_labs_recheck_regexp_Parser__f_additional && !this.Lcodes_quine_labs_recheck_regexp_Parser__f_unicode) { | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$62 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var input$macro$71 = evidence$7.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var startPos$1 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var startCut = evidence$7.Lfastparse_ParsingRun__f_cut; | |
var oldNoCut = evidence$7.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$7.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
this.NormalizedQuantifier__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$7); | |
evidence$7.Lfastparse_ParsingRun__f_noDropBuffer = oldNoCut; | |
var msg = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var res$1 = evidence$7.Lfastparse_ParsingRun__f_isSuccess ? evidence$7.freshSuccessUnit__I__Lfastparse_ParsingRun(startPos$1) : evidence$7; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate = $m_Lfastparse_internal_Msgs$().Lfastparse_internal_Msgs$__f_empty; | |
evidence$7.setMsg__I__F0__V(startPos$1, new $c_sjsr_AnonFunction0(((msg$1) => () => { | |
if ($is_sci_Seq(msg$1)) { | |
var x2 = msg$1; | |
$m_s_package$(); | |
if ((new $c_sc_SeqFactory$UnapplySeqWrapper(x2), true) && x2.lengthCompare__I__I(1) === 0) { | |
return "&(" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$1.Lfastparse_internal_Msgs__f_value) + ")"; | |
} | |
} | |
; | |
return "&" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$1.Lfastparse_internal_Msgs__f_value); | |
})(msg))); | |
} | |
; | |
res$1.Lfastparse_ParsingRun__f_cut = startCut; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$63 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$66 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$69 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
evidence$7.Lfastparse_ParsingRun__f_cut = true; | |
if (postLhsIndex$macro$63 > preLhsIndex$macro$62) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$7.Lfastparse_ParsingRun__f_isSuccess && evidence$7.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$64 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Fail__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$7); | |
var rhsAggregate$macro$67 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$68 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$7.Lfastparse_ParsingRun__f_cut = true; | |
} else { | |
var postRhsIndex$macro$65 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$70 = postRhsIndex$macro$65 > preRhsIndex$macro$64; | |
var nextIndex$macro$73 = !rhsMadeProgress$macro$70 && input$macro$71.isReachable__I__Z(postRhsIndex$macro$65) ? postLhsIndex$macro$63 : postRhsIndex$macro$65; | |
if (rhsMadeProgress$macro$70) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
var $$x5; | |
throw new $c_jl_ClassCastException(); | |
evidence$7.freshSuccess__O__I__Lfastparse_ParsingRun($$x5, nextIndex$macro$73); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$62, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$69, rhsMsg$macro$68), lhsAggregate$macro$66.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$67), preRhsIndex$macro$64 === evidence$7.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
} else { | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$77 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var input$macro$86 = evidence$7.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var startPos$9 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var startCut$1 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
var oldNoCut$1 = evidence$7.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$7.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
var index$5 = evidence$7.Lfastparse_ParsingRun__f_index; | |
if (!evidence$7.Lfastparse_ParsingRun__f_input.isReachable__I__Z(index$5)) { | |
evidence$7.freshFailure__Lfastparse_ParsingRun(); | |
} else { | |
var this$35 = evidence$7.Lfastparse_ParsingRun__f_input; | |
var index$6 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var this$36 = this$35.Lfastparse_IndexedParserInput__f_data; | |
var x1$2 = 65535 & (this$36.charCodeAt(index$6) | 0); | |
switch (x1$2) { | |
case 123: { | |
var x1$3$1 = true; | |
break; | |
} | |
case 125: { | |
var x1$3$1 = true; | |
break; | |
} | |
case 93: { | |
var x1$3$1 = true; | |
break; | |
} | |
default: { | |
var x1$3$1 = false; | |
} | |
} | |
; | |
if (x1$3$1 === true) { | |
evidence$7.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$5 | 0); | |
} else { | |
if (x1$3$1 !== false) { | |
throw new $c_s_MatchError(x1$3$1); | |
} | |
; | |
evidence$7.freshFailure__Lfastparse_ParsingRun(); | |
} | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateTerminal__I__F0__V(index$5, new $c_sjsr_AnonFunction0(() => "[{}]]")); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_noDropBuffer = oldNoCut$1; | |
var msg$2 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var res$6 = evidence$7.Lfastparse_ParsingRun__f_isSuccess ? evidence$7.freshSuccessUnit__I__Lfastparse_ParsingRun(startPos$9) : evidence$7; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate = $m_Lfastparse_internal_Msgs$().Lfastparse_internal_Msgs$__f_empty; | |
evidence$7.setMsg__I__F0__V(startPos$9, new $c_sjsr_AnonFunction0(((msg$3) => () => { | |
if ($is_sci_Seq(msg$3)) { | |
var x2$1 = msg$3; | |
$m_s_package$(); | |
if ((new $c_sc_SeqFactory$UnapplySeqWrapper(x2$1), true) && x2$1.lengthCompare__I__I(1) === 0) { | |
return "&(" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$3.Lfastparse_internal_Msgs__f_value) + ")"; | |
} | |
} | |
; | |
return "&" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$3.Lfastparse_internal_Msgs__f_value); | |
})(msg$2))); | |
} | |
; | |
res$6.Lfastparse_ParsingRun__f_cut = startCut$1; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$78 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$81 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$84 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
evidence$7.Lfastparse_ParsingRun__f_cut = true; | |
if (postLhsIndex$macro$78 > preLhsIndex$macro$77) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$7.Lfastparse_ParsingRun__f_isSuccess && evidence$7.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$79 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Fail__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$7); | |
var rhsAggregate$macro$82 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$83 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$7.Lfastparse_ParsingRun__f_cut = true; | |
} else { | |
var postRhsIndex$macro$80 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$85 = postRhsIndex$macro$80 > preRhsIndex$macro$79; | |
var nextIndex$macro$88 = !rhsMadeProgress$macro$85 && input$macro$86.isReachable__I__Z(postRhsIndex$macro$80) ? postLhsIndex$macro$78 : postRhsIndex$macro$80; | |
if (rhsMadeProgress$macro$85) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
var $$x6; | |
throw new $c_jl_ClassCastException(); | |
evidence$7.freshSuccess__O__I__Lfastparse_ParsingRun($$x6, nextIndex$macro$88); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$77, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$84, rhsMsg$macro$83), lhsAggregate$macro$81.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$82), preRhsIndex$macro$79 === evidence$7.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
} | |
; | |
var rhsMsg$7 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$7 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
var endCut$7 = !!(rhsCut$7 | oldCut$2); | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$7) { | |
evidence$7.freshFailure__I__Lfastparse_ParsingRun(startPos$2); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = endCut$7; | |
if (verboseFailures$7) { | |
var msgToSet$6 = lhsMsg$7.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$7); | |
var rassoc$3$8 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$6 = lhsAggregate$7.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$8); | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, msgToSet$6, msgToAggregate$6, false); | |
} | |
} | |
; | |
var lhsMsg$8 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$8 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$7.Lfastparse_ParsingRun__f_cut = !!(evidence$7.Lfastparse_ParsingRun__f_cut | oldCut); | |
} else if (!evidence$7.Lfastparse_ParsingRun__f_cut) { | |
var verboseFailures$8 = evidence$7.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$7.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures$8) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg$8, lhsAggregate$8, false); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$(); | |
var parse0$9 = this.Character__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$7); | |
if (parse0$9.Lfastparse_ParsingRun__f_isSuccess) { | |
parse0$9.Lfastparse_ParsingRun__f_successValue = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Character(parse0$9.Lfastparse_ParsingRun__f_successValue); | |
} | |
; | |
var rhsMsg$8 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$8 = evidence$7.Lfastparse_ParsingRun__f_cut; | |
var endCut$8 = !!(rhsCut$8 | oldCut); | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$8) { | |
evidence$7.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$7.Lfastparse_ParsingRun__f_cut = endCut$8; | |
if (verboseFailures$8) { | |
var msgToSet$7 = lhsMsg$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$8); | |
var rassoc$3$9 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$7 = lhsAggregate$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$9); | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet$7, msgToAggregate$7, false); | |
} | |
} | |
; | |
var rhsAggregate$macro$7$1 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8$1 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14$1 = evidence$7; | |
} else { | |
var postRhsIndex$macro$5$1 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10$1 = postRhsIndex$macro$5$1 > preRhsIndex$macro$4; | |
var nextIndex$macro$13$1 = !rhsMadeProgress$macro$10$1 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5$1) ? postLhsIndex$macro$3 : postRhsIndex$macro$5$1; | |
if (rhsMadeProgress$macro$10$1) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14$1 = evidence$7.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$7.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13$1); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8$1), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7$1), preRhsIndex$macro$4 === evidence$7.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$11 = evidence$7; | |
} else { | |
var postLhsIndex$macro$18$1 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21$1 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24$1 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18$1 > preLhsIndex$macro$17) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27$1 = evidence$7.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess && evidence$7.Lfastparse_ParsingRun__f_cut) { | |
var parse0$11 = evidence$7; | |
} else { | |
var preRhsIndex$macro$19$1 = evidence$7.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$7); | |
var rhsAggregate$macro$22$1 = evidence$7.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23$1 = evidence$7.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29$1 = evidence$7; | |
} else { | |
var postRhsIndex$macro$20$1 = evidence$7.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25$1 = postRhsIndex$macro$20$1 > preRhsIndex$macro$19$1; | |
var nextIndex$macro$28$1 = !rhsMadeProgress$macro$25$1 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20$1) ? postLhsIndex$macro$18$1 : postRhsIndex$macro$20$1; | |
if (rhsMadeProgress$macro$25$1) { | |
evidence$7.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29$1 = evidence$7.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27$1, evidence$7.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28$1); | |
} | |
; | |
if (evidence$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24$1, rhsMsg$macro$23$1), lhsAggregate$macro$21$1.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22$1), preRhsIndex$macro$19$1 === evidence$7.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$11 = res$macro$29$1; | |
} | |
} | |
; | |
if (!parse0$11.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$11; | |
} else { | |
var arg1 = parse0$11.Lfastparse_ParsingRun__f_successValue; | |
if (arg1 === null) { | |
throw new $c_s_MatchError(arg1); | |
} | |
; | |
var start2 = arg1.T3__f__1 | 0; | |
var node = arg1.T3__f__2; | |
var end = arg1.T3__f__3 | 0; | |
parse0$11.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node, start2, end); | |
var x1$7 = parse0$11; | |
} | |
; | |
if (instrument$1) { | |
evidence$7.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$54 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$54); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$7.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("Atom").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("Atom").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("Atom").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$61 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$61); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.Class__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$8) { | |
var startIndex = evidence$8.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$8.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$8.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("Class").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$8.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$8.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$8.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$8.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$8); | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$8.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$8.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess && evidence$8.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$8.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var this$4 = $m_Lfastparse_Implicits$Sequencer$(); | |
this$4.UnitSequencer0__Lfastparse_Implicits$LowPriSequencer$UnitSequencer0$(); | |
var preLhsIndex$macro$58 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var input$macro$67 = evidence$8.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$5 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$4 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$5); | |
var preLhsIndex$macro$43 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var input$macro$52 = evidence$8.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$2$1 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var input$macro$11$1 = evidence$8.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input = evidence$8.Lfastparse_ParsingRun__f_input; | |
var index = evidence$8.Lfastparse_ParsingRun__f_index; | |
if (input.isReachable__I__Z(index)) { | |
var this$7 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$7.charCodeAt(index) | 0)) === 91; | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$8.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index | 0); | |
} else { | |
evidence$8.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$8.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$8.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"["')); | |
} | |
; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3$1 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6$1 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9$1 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
evidence$8.Lfastparse_ParsingRun__f_cut = true; | |
if (postLhsIndex$macro$3$1 > preLhsIndex$macro$2$1) { | |
evidence$8.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess && evidence$8.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4$1 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var oldCut = evidence$8.Lfastparse_ParsingRun__f_cut; | |
evidence$8.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$8.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var input$2 = evidence$8.Lfastparse_ParsingRun__f_input; | |
var index$2 = evidence$8.Lfastparse_ParsingRun__f_index; | |
if (input$2.isReachable__I__Z(index$2)) { | |
var this$10 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x2 = (65535 & (this$10.charCodeAt(index$2) | 0)) === 94; | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
var res$2 = evidence$8.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$2 | 0); | |
} else { | |
var res$2 = evidence$8.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$8.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$8.aggregateTerminal__I__F0__V(index$2, new $c_sjsr_AnonFunction0(() => '"^"')); | |
} | |
; | |
if (!res$2.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
res$2.Lfastparse_ParsingRun__f_successValue = true; | |
} | |
; | |
var lhsMsg = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$8.Lfastparse_ParsingRun__f_cut = !!(evidence$8.Lfastparse_ParsingRun__f_cut | oldCut); | |
} else if (!evidence$8.Lfastparse_ParsingRun__f_cut) { | |
var verboseFailures = evidence$8.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$8.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures) { | |
evidence$8.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$8.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(false, evidence$8); | |
var rhsMsg = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$8.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut); | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$8.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$8.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$8.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet, msgToAggregate, false); | |
} | |
} | |
; | |
var rhsAggregate$macro$7 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$8.Lfastparse_ParsingRun__f_cut = true; | |
var res$macro$14 = evidence$8; | |
} else { | |
var postRhsIndex$macro$5 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4$1; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11$1.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3$1 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$8.checkForDrop__Z(); | |
} | |
; | |
var v = !!evidence$8.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$14 = evidence$8.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$13); | |
} | |
; | |
if (evidence$8.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$8.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2$1, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9$1, rhsMsg$macro$8), lhsAggregate$macro$6$1.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4$1 === evidence$8.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$44 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$47 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$50 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$44 > preLhsIndex$macro$43) { | |
evidence$8.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$53 = evidence$8.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess && evidence$8.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$45 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var this$14 = $m_Lfastparse_Implicits$Repeater$(); | |
this$14.GenericRepeatedImplicit0__Lfastparse_Implicits$LowPriRepeater$GenericRepeatedImplicit0$(); | |
var elem = evidence$8.Lfastparse_ParsingRun__f_cut; | |
var elem$1 = false; | |
elem$1 = elem; | |
var acc$macro$33 = $m_scm_Buffer$().empty__sc_SeqOps(); | |
var startIndex$macro$34 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var count$macro$35 = 0; | |
var lastAgg$macro$40 = null; | |
while (true) { | |
evidence$8.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$17$1 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var input$macro$26$1 = evidence$8.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var startPos$1 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var startCut = evidence$8.Lfastparse_ParsingRun__f_cut; | |
var oldNoCut = evidence$8.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$8.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
var startTerminals = evidence$8.Lfastparse_ParsingRun__f_failureTerminalAggregate; | |
var input$1 = evidence$8.Lfastparse_ParsingRun__f_input; | |
var index$1 = evidence$8.Lfastparse_ParsingRun__f_index; | |
if (input$1.isReachable__I__Z(index$1)) { | |
var this$19 = input$1.Lfastparse_IndexedParserInput__f_data; | |
var $$x3 = (65535 & (this$19.charCodeAt(index$1) | 0)) === 93; | |
} else { | |
var $$x3 = false; | |
} | |
; | |
if ($$x3) { | |
evidence$8.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$1 | 0); | |
} else { | |
evidence$8.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$8.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$8.aggregateTerminal__I__F0__V(index$1, new $c_sjsr_AnonFunction0(() => '"]"')); | |
} | |
; | |
evidence$8.Lfastparse_ParsingRun__f_noDropBuffer = oldNoCut; | |
var msg = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
var res$3 = evidence$8.Lfastparse_ParsingRun__f_isSuccess ? evidence$8.freshFailure__I__Lfastparse_ParsingRun(startPos$1) : evidence$8.freshSuccessUnit__I__Lfastparse_ParsingRun(startPos$1); | |
if (evidence$8.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$8.Lfastparse_ParsingRun__f_failureTerminalAggregate = startTerminals; | |
evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate = $m_Lfastparse_internal_Msgs$().Lfastparse_internal_Msgs$__f_empty; | |
evidence$8.setMsg__I__F0__V(startPos$1, new $c_sjsr_AnonFunction0(((msg$1) => () => "!" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$1.Lfastparse_internal_Msgs__f_value))(msg))); | |
} | |
; | |
res$3.Lfastparse_ParsingRun__f_cut = startCut; | |
if (evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$18 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
evidence$8.Lfastparse_ParsingRun__f_cut = true; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17$1) { | |
evidence$8.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$8.Lfastparse_ParsingRun__f_isSuccess && evidence$8.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$19 = evidence$8.Lfastparse_ParsingRun__f_index; | |
this.ClassNode__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$8); | |
var rhsAggregate$macro$22 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$8.Lfastparse_ParsingRun__f_cut = true; | |
} else { | |
var postRhsIndex$macro$20 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26$1.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$8.checkForDrop__Z(); | |
} | |
; | |
var v$1 = evidence$8.Lfastparse_ParsingRun__f_successValue; | |
evidence$8.freshSuccess__O__I__Lfastparse_ParsingRun(v$1, nextIndex$macro$28); | |
} | |
; | |
if (evidence$8.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$8.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17$1, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$8.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var parsedMsg$macro$39 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
var parsedAgg$macro$41 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
elem$1 = !!(elem$1 | evidence$8.Lfastparse_ParsingRun__f_cut); | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$4 = evidence$8.Lfastparse_ParsingRun__f_cut ? evidence$8 : evidence$8.freshSuccess__O__I__Z__Lfastparse_ParsingRun($m_sci_Seq$().from__sc_IterableOnce__sci_Seq(acc$macro$33), startIndex$macro$34, elem$1); | |
if (evidence$8.Lfastparse_ParsingRun__f_verboseFailures) { | |
var $$x6 = startIndex$macro$34; | |
var $$x5 = new $c_sjsr_AnonFunction0(((parsedMsg$macro$39$1) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$macro$39$1.Lfastparse_internal_Msgs__f_value) + ".rep")(parsedMsg$macro$39)); | |
if (lastAgg$macro$40 === null) { | |
var $$x4 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
} else { | |
var rassoc$3$1 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var $$x4 = lastAgg$macro$40.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$1); | |
} | |
; | |
evidence$8.aggregateMsg__I__F0__Lfastparse_internal_Msgs__V($$x6, $$x5, $$x4); | |
} | |
; | |
break; | |
} else { | |
var beforeSepIndex$macro$36 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var t = evidence$8.Lfastparse_ParsingRun__f_successValue; | |
acc$macro$33.addOne__O__scm_Growable(t); | |
evidence$8.Lfastparse_ParsingRun__f_cut = false; | |
if ($m_Lfastparse_NoWhitespace$noWhitespaceImplicit$() !== $m_Lfastparse_NoWhitespace$noWhitespaceImplicit$()) { | |
$m_Lfastparse_internal_Util$().consumeWhitespace__F1__Lfastparse_ParsingRun__V($m_Lfastparse_NoWhitespace$noWhitespaceImplicit$(), evidence$8); | |
} | |
; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess && evidence$8.Lfastparse_ParsingRun__f_cut) { | |
break; | |
} else { | |
evidence$8.Lfastparse_ParsingRun__f_cut = false; | |
var temp$count$macro$35 = 1 + count$macro$35 | 0; | |
startIndex$macro$34 = beforeSepIndex$macro$36; | |
count$macro$35 = temp$count$macro$35; | |
lastAgg$macro$40 = parsedAgg$macro$41; | |
} | |
} | |
} | |
; | |
var rhsAggregate$macro$48 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$49 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$55 = evidence$8; | |
} else { | |
var postRhsIndex$macro$46 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$51 = postRhsIndex$macro$46 > preRhsIndex$macro$45; | |
var nextIndex$macro$54 = !rhsMadeProgress$macro$51 && input$macro$52.isReachable__I__Z(postRhsIndex$macro$46) ? postLhsIndex$macro$44 : postRhsIndex$macro$46; | |
if (rhsMadeProgress$macro$51) { | |
evidence$8.checkForDrop__Z(); | |
} | |
; | |
var res$macro$55 = evidence$8.freshSuccess__O__I__Lfastparse_ParsingRun(x1$4.apply__O__O__O(!!lhsValue$macro$53, evidence$8.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$54); | |
} | |
; | |
if (evidence$8.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$8.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$43, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$50, rhsMsg$macro$49), lhsAggregate$macro$47.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$48), preRhsIndex$macro$45 === evidence$8.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$4 = evidence$8; | |
} else { | |
var postLhsIndex$macro$59 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$62 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$65 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$59 > preLhsIndex$macro$58) { | |
evidence$8.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$68 = evidence$8.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess && evidence$8.Lfastparse_ParsingRun__f_cut) { | |
var parse0$4 = evidence$8; | |
} else { | |
var preRhsIndex$macro$60 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var input$3 = evidence$8.Lfastparse_ParsingRun__f_input; | |
var index$3 = evidence$8.Lfastparse_ParsingRun__f_index; | |
if (input$3.isReachable__I__Z(index$3)) { | |
var this$24 = input$3.Lfastparse_IndexedParserInput__f_data; | |
var $$x7 = (65535 & (this$24.charCodeAt(index$3) | 0)) === 93; | |
} else { | |
var $$x7 = false; | |
} | |
; | |
if ($$x7) { | |
evidence$8.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$3 | 0); | |
} else { | |
evidence$8.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$8.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$8.aggregateTerminal__I__F0__V(index$3, new $c_sjsr_AnonFunction0(() => '"]"')); | |
} | |
; | |
var rhsAggregate$macro$63 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$64 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$70 = evidence$8; | |
} else { | |
var postRhsIndex$macro$61 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$66 = postRhsIndex$macro$61 > preRhsIndex$macro$60; | |
var nextIndex$macro$69 = !rhsMadeProgress$macro$66 && input$macro$67.isReachable__I__Z(postRhsIndex$macro$61) ? postLhsIndex$macro$59 : postRhsIndex$macro$61; | |
if (rhsMadeProgress$macro$66) { | |
evidence$8.checkForDrop__Z(); | |
} | |
; | |
var t$1 = lhsValue$macro$68; | |
var res$macro$70 = evidence$8.freshSuccess__O__I__Lfastparse_ParsingRun(t$1, nextIndex$macro$69); | |
} | |
; | |
if (evidence$8.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$8.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$58, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$65, rhsMsg$macro$64), lhsAggregate$macro$62.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$63), preRhsIndex$macro$60 === evidence$8.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$4 = res$macro$70; | |
} | |
} | |
; | |
if (parse0$4.Lfastparse_ParsingRun__f_isSuccess) { | |
var arg1 = parse0$4.Lfastparse_ParsingRun__f_successValue; | |
if (arg1 === null) { | |
throw new $c_s_MatchError(arg1); | |
} | |
; | |
var invert = arg1._1$mcZ$sp__Z(); | |
var items = arg1._2__O(); | |
parse0$4.Lfastparse_ParsingRun__f_successValue = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$CharacterClass(invert, items); | |
} | |
; | |
var rhsAggregate$macro$7$1 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8$1 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14$1 = evidence$8; | |
} else { | |
var postRhsIndex$macro$5$1 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10$1 = postRhsIndex$macro$5$1 > preRhsIndex$macro$4; | |
var nextIndex$macro$13$1 = !rhsMadeProgress$macro$10$1 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5$1) ? postLhsIndex$macro$3 : postRhsIndex$macro$5$1; | |
if (rhsMadeProgress$macro$10$1) { | |
evidence$8.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14$1 = evidence$8.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$8.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13$1); | |
} | |
; | |
if (evidence$8.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$8.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8$1), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7$1), preRhsIndex$macro$4 === evidence$8.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$6 = evidence$8; | |
} else { | |
var postLhsIndex$macro$18$1 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21$1 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24$1 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18$1 > preLhsIndex$macro$17) { | |
evidence$8.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27$1 = evidence$8.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess && evidence$8.Lfastparse_ParsingRun__f_cut) { | |
var parse0$6 = evidence$8; | |
} else { | |
var preRhsIndex$macro$19$1 = evidence$8.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$8); | |
var rhsAggregate$macro$22$1 = evidence$8.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23$1 = evidence$8.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29$1 = evidence$8; | |
} else { | |
var postRhsIndex$macro$20$1 = evidence$8.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25$1 = postRhsIndex$macro$20$1 > preRhsIndex$macro$19$1; | |
var nextIndex$macro$28$1 = !rhsMadeProgress$macro$25$1 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20$1) ? postLhsIndex$macro$18$1 : postRhsIndex$macro$20$1; | |
if (rhsMadeProgress$macro$25$1) { | |
evidence$8.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29$1 = evidence$8.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27$1, evidence$8.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28$1); | |
} | |
; | |
if (evidence$8.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$8.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24$1, rhsMsg$macro$23$1), lhsAggregate$macro$21$1.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22$1), preRhsIndex$macro$19$1 === evidence$8.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$6 = res$macro$29$1; | |
} | |
} | |
; | |
if (!parse0$6.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$6; | |
} else { | |
var arg1$1 = parse0$6.Lfastparse_ParsingRun__f_successValue; | |
if (arg1$1 === null) { | |
throw new $c_s_MatchError(arg1$1); | |
} | |
; | |
var start2 = arg1$1.T3__f__1 | 0; | |
var node = arg1$1.T3__f__2; | |
var end = arg1$1.T3__f__3 | 0; | |
parse0$6.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node, start2, end); | |
var x1$7 = parse0$6; | |
} | |
; | |
if (instrument$1) { | |
evidence$8.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$34 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$34); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$8.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("Class").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("Class").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("Class").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$41 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$41); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.ClassNode__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$9) { | |
var startIndex = evidence$9.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$9.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$9.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("ClassNode").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$9.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$9.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$9.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$9.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$9); | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$9.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess && evidence$9.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$9.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var startIndex$2 = evidence$9.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var this$4 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3$1 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$4); | |
var preLhsIndex$macro$34 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var input$macro$43 = evidence$9.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
this.ClassAtom__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$9); | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$4 = evidence$9; | |
} else { | |
var postLhsIndex$macro$35 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$38 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$41 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$35 > preLhsIndex$macro$34) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$44 = evidence$9.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess && evidence$9.Lfastparse_ParsingRun__f_cut) { | |
var parse0$4 = evidence$9; | |
} else { | |
var preRhsIndex$macro$36 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var oldCut = evidence$9.Lfastparse_ParsingRun__f_cut; | |
evidence$9.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$9.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$19 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var input$macro$28 = evidence$9.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$4 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var input$macro$13 = evidence$9.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var startPos$1 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var startCut = evidence$9.Lfastparse_ParsingRun__f_cut; | |
var oldNoCut = evidence$9.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$9.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
var input = evidence$9.Lfastparse_ParsingRun__f_input; | |
var index = evidence$9.Lfastparse_ParsingRun__f_index; | |
if (input.isReachable__I__Z(index)) { | |
var this$9 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$9.charCodeAt(index) | 0)) === 45; | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$9.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index | 0); | |
} else { | |
evidence$9.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"-"')); | |
} | |
; | |
evidence$9.Lfastparse_ParsingRun__f_noDropBuffer = oldNoCut; | |
var msg = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
var res$1 = evidence$9.Lfastparse_ParsingRun__f_isSuccess ? evidence$9.freshSuccessUnit__I__Lfastparse_ParsingRun(startPos$1) : evidence$9; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate = $m_Lfastparse_internal_Msgs$().Lfastparse_internal_Msgs$__f_empty; | |
evidence$9.setMsg__I__F0__V(startPos$1, new $c_sjsr_AnonFunction0(((msg$1) => () => { | |
if ($is_sci_Seq(msg$1)) { | |
var x2 = msg$1; | |
$m_s_package$(); | |
if ((new $c_sc_SeqFactory$UnapplySeqWrapper(x2), true) && x2.lengthCompare__I__I(1) === 0) { | |
return "&(" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$1.Lfastparse_internal_Msgs__f_value) + ")"; | |
} | |
} | |
; | |
return "&" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$1.Lfastparse_internal_Msgs__f_value); | |
})(msg))); | |
} | |
; | |
res$1.Lfastparse_ParsingRun__f_cut = startCut; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$5 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$8 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$11 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$5 > preLhsIndex$macro$4) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess && evidence$9.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$6 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var startPos$2 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var startCut$1 = evidence$9.Lfastparse_ParsingRun__f_cut; | |
var oldNoCut$1 = evidence$9.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$9.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
var startTerminals = evidence$9.Lfastparse_ParsingRun__f_failureTerminalAggregate; | |
var index$1 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var end = 2 + index$1 | 0; | |
var input$1 = evidence$9.Lfastparse_ParsingRun__f_input; | |
if (input$1.isReachable__I__Z(-1 + end | 0)) { | |
var this$18 = input$1.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$18.charCodeAt(index$1) | 0)) === 45) { | |
var index$2 = 1 + index$1 | 0; | |
var this$19 = input$1.Lfastparse_IndexedParserInput__f_data; | |
var $$x2 = (65535 & (this$19.charCodeAt(index$2) | 0)) === 93; | |
} else { | |
var $$x2 = false; | |
} | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
evidence$9.freshSuccessUnit__I__Lfastparse_ParsingRun(end); | |
} else { | |
evidence$9.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateTerminal__I__F0__V(index$1, new $c_sjsr_AnonFunction0(() => '"-]"')); | |
} | |
; | |
evidence$9.Lfastparse_ParsingRun__f_noDropBuffer = oldNoCut$1; | |
var msg$2 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
var res$3 = evidence$9.Lfastparse_ParsingRun__f_isSuccess ? evidence$9.freshFailure__I__Lfastparse_ParsingRun(startPos$2) : evidence$9.freshSuccessUnit__I__Lfastparse_ParsingRun(startPos$2); | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.Lfastparse_ParsingRun__f_failureTerminalAggregate = startTerminals; | |
evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate = $m_Lfastparse_internal_Msgs$().Lfastparse_internal_Msgs$__f_empty; | |
evidence$9.setMsg__I__F0__V(startPos$2, new $c_sjsr_AnonFunction0(((msg$3) => () => "!" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$3.Lfastparse_internal_Msgs__f_value))(msg$2))); | |
} | |
; | |
res$3.Lfastparse_ParsingRun__f_cut = startCut$1; | |
var rhsAggregate$macro$9 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$10 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$16 = evidence$9; | |
} else { | |
var postRhsIndex$macro$7 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$12 = postRhsIndex$macro$7 > preRhsIndex$macro$6; | |
var nextIndex$macro$15 = !rhsMadeProgress$macro$12 && input$macro$13.isReachable__I__Z(postRhsIndex$macro$7) ? postLhsIndex$macro$5 : postRhsIndex$macro$7; | |
if (rhsMadeProgress$macro$12) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
var res$macro$16 = evidence$9.freshSuccess__O__I__Lfastparse_ParsingRun(void 0, nextIndex$macro$15); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$4, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$11, rhsMsg$macro$10), lhsAggregate$macro$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$9), preRhsIndex$macro$6 === evidence$9.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$20 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$23 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$26 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$20 > preLhsIndex$macro$19) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess && evidence$9.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$21 = evidence$9.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(true, evidence$9); | |
var rhsAggregate$macro$24 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$25 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$31 = evidence$9; | |
} else { | |
var postRhsIndex$macro$22 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$27 = postRhsIndex$macro$22 > preRhsIndex$macro$21; | |
var nextIndex$macro$30 = !rhsMadeProgress$macro$27 && input$macro$28.isReachable__I__Z(postRhsIndex$macro$22) ? postLhsIndex$macro$20 : postRhsIndex$macro$22; | |
if (rhsMadeProgress$macro$27) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
var v = !!evidence$9.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$31 = evidence$9.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$30); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$19, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$26, rhsMsg$macro$25), lhsAggregate$macro$23.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$24), preRhsIndex$macro$21 === evidence$9.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var lhsMsg = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$9.Lfastparse_ParsingRun__f_cut = !!(evidence$9.Lfastparse_ParsingRun__f_cut | oldCut); | |
} else if (!evidence$9.Lfastparse_ParsingRun__f_cut) { | |
var verboseFailures = evidence$9.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$9.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures) { | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$9.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(false, evidence$9); | |
var rhsMsg = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$9.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut); | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$9.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$9.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet, msgToAggregate, false); | |
} | |
} | |
; | |
var rhsAggregate$macro$39 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$40 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$46 = evidence$9; | |
} else { | |
var postRhsIndex$macro$37 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$42 = postRhsIndex$macro$37 > preRhsIndex$macro$36; | |
var nextIndex$macro$45 = !rhsMadeProgress$macro$42 && input$macro$43.isReachable__I__Z(postRhsIndex$macro$37) ? postLhsIndex$macro$35 : postRhsIndex$macro$37; | |
if (rhsMadeProgress$macro$42) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
var res$macro$46 = evidence$9.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3$1.apply__O__O__O(lhsValue$macro$44, !!evidence$9.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$45); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$34, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$41, rhsMsg$macro$40), lhsAggregate$macro$38.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$39), preRhsIndex$macro$36 === evidence$9.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$4 = res$macro$46; | |
} | |
} | |
; | |
var index$3 = parse0$4.Lfastparse_ParsingRun__f_index; | |
if (!parse0$4.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$5 = parse0$4.augmentFailure__I__Lfastparse_ParsingRun(index$3); | |
} else { | |
var progress = index$3 > startIndex$2; | |
if (progress) { | |
parse0$4.checkForDrop__Z(); | |
} | |
; | |
var parse0$5 = parse0$4.freshSuccess__O__Z__Lfastparse_ParsingRun(parse0$4.Lfastparse_ParsingRun__f_successValue, !!(parse0$4.Lfastparse_ParsingRun__f_cut | progress)); | |
} | |
; | |
if (parse0$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var oldCapturing = parse0$5.Lfastparse_ParsingRun__f_noDropBuffer; | |
var successValue = parse0$5.Lfastparse_ParsingRun__f_successValue; | |
parse0$5.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
parse0$5.freshSuccessUnit__Lfastparse_ParsingRun(); | |
parse0$5.Lfastparse_ParsingRun__f_noDropBuffer = oldCapturing; | |
if (!(!parse0$5.Lfastparse_ParsingRun__f_isSuccess && parse0$5.Lfastparse_ParsingRun__f_cut)) { | |
var arg1 = successValue; | |
matchEnd28: { | |
if (arg1 !== null) { | |
var p2 = arg1._1__O(); | |
var p3 = !!arg1._2__O(); | |
if (p2 instanceof $c_s_util_Left) { | |
var x4 = p2; | |
var c = x4.s_util_Left__f_value; | |
if (p3 === false) { | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Character(c), evidence$9); | |
break matchEnd28; | |
} | |
} | |
} | |
; | |
if (arg1 !== null) { | |
var p6 = arg1._1__O(); | |
var p7 = !!arg1._2__O(); | |
if (p6 instanceof $c_s_util_Right) { | |
var x8 = p6; | |
var node = x8.s_util_Right__f_value; | |
if (p7 === false) { | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(node, evidence$9); | |
break matchEnd28; | |
} | |
} | |
} | |
; | |
if (arg1 !== null) { | |
var p10 = arg1._1__O(); | |
var p11 = !!arg1._2__O(); | |
if (p10 instanceof $c_s_util_Right) { | |
var x12 = p10; | |
var node$2 = x12.s_util_Right__f_value; | |
if (p11 === true && (this.Lcodes_quine_labs_recheck_regexp_Parser__f_additional && !this.Lcodes_quine_labs_recheck_regexp_Parser__f_unicode)) { | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(node$2, evidence$9); | |
break matchEnd28; | |
} | |
} | |
} | |
; | |
if (arg1 !== null) { | |
var p14 = arg1._1__O(); | |
var p15 = !!arg1._2__O(); | |
if (p14 instanceof $c_s_util_Right && p15 === true) { | |
$m_Lfastparse_package$().Fail__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$9); | |
break matchEnd28; | |
} | |
} | |
; | |
if (arg1 !== null) { | |
var p19 = arg1._1__O(); | |
var p20 = !!arg1._2__O(); | |
if (p19 instanceof $c_s_util_Left) { | |
var x21 = p19; | |
var c$2 = x21.s_util_Left__f_value; | |
if (p20 === true && (this.Lcodes_quine_labs_recheck_regexp_Parser__f_additional && !this.Lcodes_quine_labs_recheck_regexp_Parser__f_unicode)) { | |
var oldCut$1 = evidence$9.Lfastparse_ParsingRun__f_cut; | |
evidence$9.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$3 = evidence$9.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$64 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var input$macro$73 = evidence$9.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var startPos$4 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var startCut$2 = evidence$9.Lfastparse_ParsingRun__f_cut; | |
var oldNoCut$2 = evidence$9.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$9.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$49 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var input$macro$58 = evidence$9.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input$2 = evidence$9.Lfastparse_ParsingRun__f_input; | |
var index$4 = evidence$9.Lfastparse_ParsingRun__f_index; | |
if (input$2.isReachable__I__Z(index$4)) { | |
var this$28 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x3 = (65535 & (this$28.charCodeAt(index$4) | 0)) === 45; | |
} else { | |
var $$x3 = false; | |
} | |
; | |
if ($$x3) { | |
evidence$9.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$4 | 0); | |
} else { | |
evidence$9.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateTerminal__I__F0__V(index$4, new $c_sjsr_AnonFunction0(() => '"-"')); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$50 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$53 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$56 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$50 > preLhsIndex$macro$49) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$9.Lfastparse_ParsingRun__f_isSuccess && evidence$9.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$51 = evidence$9.Lfastparse_ParsingRun__f_index; | |
this.EscapeClass__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$9); | |
var rhsAggregate$macro$54 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$55 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$52 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$57 = postRhsIndex$macro$52 > preRhsIndex$macro$51; | |
var nextIndex$macro$60 = !rhsMadeProgress$macro$57 && input$macro$58.isReachable__I__Z(postRhsIndex$macro$52) ? postLhsIndex$macro$50 : postRhsIndex$macro$52; | |
if (rhsMadeProgress$macro$57) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
var v$1 = evidence$9.Lfastparse_ParsingRun__f_successValue; | |
evidence$9.freshSuccess__O__I__Lfastparse_ParsingRun(v$1, nextIndex$macro$60); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$49, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$56, rhsMsg$macro$55), lhsAggregate$macro$53.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$54), preRhsIndex$macro$51 === evidence$9.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
evidence$9.Lfastparse_ParsingRun__f_noDropBuffer = oldNoCut$2; | |
var msg$4 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
var res$5 = evidence$9.Lfastparse_ParsingRun__f_isSuccess ? evidence$9.freshSuccessUnit__I__Lfastparse_ParsingRun(startPos$4) : evidence$9; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate = $m_Lfastparse_internal_Msgs$().Lfastparse_internal_Msgs$__f_empty; | |
evidence$9.setMsg__I__F0__V(startPos$4, new $c_sjsr_AnonFunction0(((msg$5) => () => { | |
if ($is_sci_Seq(msg$5)) { | |
var x2$1 = msg$5; | |
$m_s_package$(); | |
if ((new $c_sc_SeqFactory$UnapplySeqWrapper(x2$1), true) && x2$1.lengthCompare__I__I(1) === 0) { | |
return "&(" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$5.Lfastparse_internal_Msgs__f_value) + ")"; | |
} | |
} | |
; | |
return "&" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$5.Lfastparse_internal_Msgs__f_value); | |
})(msg$4))); | |
} | |
; | |
res$5.Lfastparse_ParsingRun__f_cut = startCut$2; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$65 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$68 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$71 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$65 > preLhsIndex$macro$64) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess && evidence$9.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$66 = evidence$9.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Character(c$2), evidence$9); | |
var rhsAggregate$macro$69 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$70 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$76 = evidence$9; | |
} else { | |
var postRhsIndex$macro$67 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$72 = postRhsIndex$macro$67 > preRhsIndex$macro$66; | |
var nextIndex$macro$75 = !rhsMadeProgress$macro$72 && input$macro$73.isReachable__I__Z(postRhsIndex$macro$67) ? postLhsIndex$macro$65 : postRhsIndex$macro$67; | |
if (rhsMadeProgress$macro$72) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
var v$2 = evidence$9.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$76 = evidence$9.freshSuccess__O__I__Lfastparse_ParsingRun(v$2, nextIndex$macro$75); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$64, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$71, rhsMsg$macro$70), lhsAggregate$macro$68.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$69), preRhsIndex$macro$66 === evidence$9.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var lhsMsg$1 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$1 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$9.Lfastparse_ParsingRun__f_cut = !!(evidence$9.Lfastparse_ParsingRun__f_cut | oldCut$1); | |
break matchEnd28; | |
} else if (evidence$9.Lfastparse_ParsingRun__f_cut) { | |
break matchEnd28; | |
} else { | |
var verboseFailures$1 = evidence$9.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$9.Lfastparse_ParsingRun__f_index = startPos$3; | |
if (verboseFailures$1) { | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, lhsMsg$1, lhsAggregate$1, false); | |
} | |
; | |
evidence$9.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$79 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var input$macro$88 = evidence$9.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input$3 = evidence$9.Lfastparse_ParsingRun__f_input; | |
var index$5 = evidence$9.Lfastparse_ParsingRun__f_index; | |
if (input$3.isReachable__I__Z(index$5)) { | |
var this$39 = input$3.Lfastparse_IndexedParserInput__f_data; | |
var $$x4 = (65535 & (this$39.charCodeAt(index$5) | 0)) === 45; | |
} else { | |
var $$x4 = false; | |
} | |
; | |
if ($$x4) { | |
evidence$9.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$5 | 0); | |
} else { | |
evidence$9.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateTerminal__I__F0__V(index$5, new $c_sjsr_AnonFunction0(() => '"-"')); | |
} | |
; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$7 = evidence$9; | |
} else { | |
var postLhsIndex$macro$80 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$83 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$86 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$80 > preLhsIndex$macro$79) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess && evidence$9.Lfastparse_ParsingRun__f_cut) { | |
var parse0$7 = evidence$9; | |
} else { | |
var preRhsIndex$macro$81 = evidence$9.Lfastparse_ParsingRun__f_index; | |
this.ClassCharacter__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$9); | |
var rhsAggregate$macro$84 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$85 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$91 = evidence$9; | |
} else { | |
var postRhsIndex$macro$82 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$87 = postRhsIndex$macro$82 > preRhsIndex$macro$81; | |
var nextIndex$macro$90 = !rhsMadeProgress$macro$87 && input$macro$88.isReachable__I__Z(postRhsIndex$macro$82) ? postLhsIndex$macro$80 : postRhsIndex$macro$82; | |
if (rhsMadeProgress$macro$87) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
var v$3 = evidence$9.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$91 = evidence$9.freshSuccess__O__I__Lfastparse_ParsingRun(v$3, nextIndex$macro$90); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$79, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$86, rhsMsg$macro$85), lhsAggregate$macro$83.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$84), preRhsIndex$macro$81 === evidence$9.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$7 = res$macro$91; | |
} | |
} | |
; | |
if (parse0$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var arg1$1 = parse0$7.Lfastparse_ParsingRun__f_successValue; | |
parse0$7.Lfastparse_ParsingRun__f_successValue = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$ClassRange(c$2, arg1$1); | |
} | |
; | |
var rhsMsg$1 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$1 = evidence$9.Lfastparse_ParsingRun__f_cut; | |
var endCut$1 = !!(rhsCut$1 | oldCut$1); | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$1) { | |
evidence$9.freshFailure__I__Lfastparse_ParsingRun(startPos$3); | |
} | |
; | |
evidence$9.Lfastparse_ParsingRun__f_cut = endCut$1; | |
if (verboseFailures$1) { | |
var msgToSet$1 = lhsMsg$1.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$1); | |
var rassoc$3$1 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$1 = lhsAggregate$1.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$1); | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, msgToSet$1, msgToAggregate$1, false); | |
} | |
; | |
break matchEnd28; | |
} | |
} | |
} | |
} | |
; | |
if (arg1 !== null) { | |
var p23 = arg1._1__O(); | |
var p24 = !!arg1._2__O(); | |
if (p23 instanceof $c_s_util_Left) { | |
var x25 = p23; | |
var c$3 = x25.s_util_Left__f_value; | |
if (p24 === true) { | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$94 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var input$macro$103 = evidence$9.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input$2$1 = evidence$9.Lfastparse_ParsingRun__f_input; | |
var index$2$1 = evidence$9.Lfastparse_ParsingRun__f_index; | |
if (input$2$1.isReachable__I__Z(index$2$1)) { | |
var this$43 = input$2$1.Lfastparse_IndexedParserInput__f_data; | |
var $$x5 = (65535 & (this$43.charCodeAt(index$2$1) | 0)) === 45; | |
} else { | |
var $$x5 = false; | |
} | |
; | |
if ($$x5) { | |
evidence$9.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$2$1 | 0); | |
} else { | |
evidence$9.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateTerminal__I__F0__V(index$2$1, new $c_sjsr_AnonFunction0(() => '"-"')); | |
} | |
; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$8 = evidence$9; | |
} else { | |
var postLhsIndex$macro$95 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$98 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$101 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$95 > preLhsIndex$macro$94) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess && evidence$9.Lfastparse_ParsingRun__f_cut) { | |
var parse0$8 = evidence$9; | |
} else { | |
var preRhsIndex$macro$96 = evidence$9.Lfastparse_ParsingRun__f_index; | |
this.ClassCharacter__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$9); | |
var rhsAggregate$macro$99 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$100 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$106 = evidence$9; | |
} else { | |
var postRhsIndex$macro$97 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$102 = postRhsIndex$macro$97 > preRhsIndex$macro$96; | |
var nextIndex$macro$105 = !rhsMadeProgress$macro$102 && input$macro$103.isReachable__I__Z(postRhsIndex$macro$97) ? postLhsIndex$macro$95 : postRhsIndex$macro$97; | |
if (rhsMadeProgress$macro$102) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
var v$4 = evidence$9.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$106 = evidence$9.freshSuccess__O__I__Lfastparse_ParsingRun(v$4, nextIndex$macro$105); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$94, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$101, rhsMsg$macro$100), lhsAggregate$macro$98.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$99), preRhsIndex$macro$96 === evidence$9.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$8 = res$macro$106; | |
} | |
} | |
; | |
if (!parse0$8.Lfastparse_ParsingRun__f_isSuccess) { | |
break matchEnd28; | |
} else { | |
var arg1$2 = parse0$8.Lfastparse_ParsingRun__f_successValue; | |
parse0$8.Lfastparse_ParsingRun__f_successValue = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$ClassRange(c$3, arg1$2); | |
break matchEnd28; | |
} | |
} | |
} | |
} | |
; | |
throw new $c_s_MatchError(arg1); | |
} | |
} | |
} | |
; | |
var rhsAggregate$macro$7 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14 = evidence$9; | |
} else { | |
var postRhsIndex$macro$5 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14 = evidence$9.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$9.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4 === evidence$9.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$10 = evidence$9; | |
} else { | |
var postLhsIndex$macro$18 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27 = evidence$9.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess && evidence$9.Lfastparse_ParsingRun__f_cut) { | |
var parse0$10 = evidence$9; | |
} else { | |
var preRhsIndex$macro$19 = evidence$9.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$9); | |
var rhsAggregate$macro$22 = evidence$9.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$9.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29 = evidence$9; | |
} else { | |
var postRhsIndex$macro$20 = evidence$9.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$9.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29 = evidence$9.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27, evidence$9.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28); | |
} | |
; | |
if (evidence$9.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$9.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$9.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$10 = res$macro$29; | |
} | |
} | |
; | |
if (!parse0$10.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$10; | |
} else { | |
var arg1$3 = parse0$10.Lfastparse_ParsingRun__f_successValue; | |
if (arg1$3 === null) { | |
throw new $c_s_MatchError(arg1$3); | |
} | |
; | |
var start2 = arg1$3.T3__f__1 | 0; | |
var node$1 = arg1$3.T3__f__2; | |
var end$1 = arg1$3.T3__f__3 | 0; | |
parse0$10.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node$1, start2, end$1); | |
var x1$7 = parse0$10; | |
} | |
; | |
if (instrument$1) { | |
evidence$9.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$54 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$54); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$9.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("ClassNode").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("ClassNode").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("ClassNode").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$61 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$61); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.ClassAtom__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$10) { | |
var startIndex = evidence$10.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$10.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$10.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("ClassAtom").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var oldCut = evidence$10.Lfastparse_ParsingRun__f_cut; | |
evidence$10.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$10.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var parse0 = this.EscapeClass__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$10); | |
if (!parse0.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var arg1 = parse0.Lfastparse_ParsingRun__f_successValue; | |
$m_s_package$(); | |
parse0.Lfastparse_ParsingRun__f_successValue = new $c_s_util_Right(arg1); | |
} | |
; | |
var lhsMsg = evidence$10.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$10.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$10.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$10.Lfastparse_ParsingRun__f_cut = !!(evidence$10.Lfastparse_ParsingRun__f_cut | oldCut); | |
var x1$5 = evidence$10; | |
} else if (evidence$10.Lfastparse_ParsingRun__f_cut) { | |
var x1$5 = evidence$10; | |
} else { | |
var verboseFailures = evidence$10.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$10.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures) { | |
evidence$10.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$10.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$(); | |
var parse0$2 = this.ClassCharacter__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$10); | |
if (parse0$2.Lfastparse_ParsingRun__f_isSuccess) { | |
var arg1$1 = parse0$2.Lfastparse_ParsingRun__f_successValue; | |
$m_s_package$(); | |
parse0$2.Lfastparse_ParsingRun__f_successValue = new $c_s_util_Left(arg1$1); | |
} | |
; | |
var rhsMsg = evidence$10.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$10.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut); | |
if (!evidence$10.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$10.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$10.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$10.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$10.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet, msgToAggregate, false); | |
} | |
; | |
var x1$5 = evidence$10; | |
} | |
; | |
if (instrument) { | |
evidence$10.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("ClassAtom").Lsourcecode_Name__f_value, x1$5.Lfastparse_ParsingRun__f_index, x1$5.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("ClassAtom").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$5.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$5.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("ClassAtom").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self, startIndex); | |
var this$12 = x1$5.Lfastparse_ParsingRun__f_failureStack; | |
x1$5.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$12); | |
} | |
} | |
; | |
return x1$5; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.ClassCharacter__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$11) { | |
var startIndex = evidence$11.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$11.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$11.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("ClassCharacter").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var oldCut = evidence$11.Lfastparse_ParsingRun__f_cut; | |
evidence$11.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$11.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$2 = evidence$11.Lfastparse_ParsingRun__f_cut; | |
evidence$11.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$2 = evidence$11.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$3 = evidence$11.Lfastparse_ParsingRun__f_cut; | |
evidence$11.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$3 = evidence$11.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$4 = evidence$11.Lfastparse_ParsingRun__f_index; | |
var input$macro$13 = evidence$11.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index = evidence$11.Lfastparse_ParsingRun__f_index; | |
var end = 2 + index | 0; | |
var input = evidence$11.Lfastparse_ParsingRun__f_input; | |
if (input.isReachable__I__Z(-1 + end | 0)) { | |
var this$2 = input.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$2.charCodeAt(index) | 0)) === 92) { | |
var index$1 = 1 + index | 0; | |
var this$3 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$3.charCodeAt(index$1) | 0)) === 45; | |
} else { | |
var $$x1 = false; | |
} | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$11.freshSuccessUnit__I__Lfastparse_ParsingRun(end); | |
} else { | |
evidence$11.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$11.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$11.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"\\\\-"')); | |
} | |
; | |
if (!evidence$11.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$5 = evidence$11.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$8 = evidence$11.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$11 = evidence$11.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$5 > preLhsIndex$macro$4) { | |
evidence$11.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$11.Lfastparse_ParsingRun__f_isSuccess && evidence$11.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$6 = evidence$11.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_unicode_UChar(45), evidence$11); | |
var rhsAggregate$macro$9 = evidence$11.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$10 = evidence$11.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$11.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$16 = evidence$11; | |
} else { | |
var postRhsIndex$macro$7 = evidence$11.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$12 = postRhsIndex$macro$7 > preRhsIndex$macro$6; | |
var nextIndex$macro$15 = !rhsMadeProgress$macro$12 && input$macro$13.isReachable__I__Z(postRhsIndex$macro$7) ? postLhsIndex$macro$5 : postRhsIndex$macro$7; | |
if (rhsMadeProgress$macro$12) { | |
evidence$11.checkForDrop__Z(); | |
} | |
; | |
var v = evidence$11.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$16 = evidence$11.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$15); | |
} | |
; | |
if (evidence$11.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$11.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$4, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$11, rhsMsg$macro$10), lhsAggregate$macro$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$9), preRhsIndex$macro$6 === evidence$11.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var lhsMsg = evidence$11.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$11.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$11.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$11.Lfastparse_ParsingRun__f_cut = !!(evidence$11.Lfastparse_ParsingRun__f_cut | oldCut$3); | |
} else if (evidence$11.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures = evidence$11.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$11.Lfastparse_ParsingRun__f_index = startPos$3; | |
if (verboseFailures) { | |
evidence$11.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$11.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$21 = evidence$11.Lfastparse_ParsingRun__f_index; | |
var input$macro$30 = evidence$11.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$2 = evidence$11.Lfastparse_ParsingRun__f_index; | |
var end$2 = 2 + index$2 | 0; | |
var input$2 = evidence$11.Lfastparse_ParsingRun__f_input; | |
if (input$2.isReachable__I__Z(-1 + end$2 | 0)) { | |
var this$7 = input$2.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$7.charCodeAt(index$2) | 0)) === 92) { | |
var index$3 = 1 + index$2 | 0; | |
var this$8 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x2 = (65535 & (this$8.charCodeAt(index$3) | 0)) === 98; | |
} else { | |
var $$x2 = false; | |
} | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
evidence$11.freshSuccessUnit__I__Lfastparse_ParsingRun(end$2); | |
} else { | |
evidence$11.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$11.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$11.aggregateTerminal__I__F0__V(index$2, new $c_sjsr_AnonFunction0(() => '"\\\\b"')); | |
} | |
; | |
if (evidence$11.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$22 = evidence$11.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$25 = evidence$11.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$28 = evidence$11.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$22 > preLhsIndex$macro$21) { | |
evidence$11.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$11.Lfastparse_ParsingRun__f_isSuccess && evidence$11.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$23 = evidence$11.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_unicode_UChar(8), evidence$11); | |
var rhsAggregate$macro$26 = evidence$11.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$27 = evidence$11.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$11.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$24 = evidence$11.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$29 = postRhsIndex$macro$24 > preRhsIndex$macro$23; | |
var nextIndex$macro$32 = !rhsMadeProgress$macro$29 && input$macro$30.isReachable__I__Z(postRhsIndex$macro$24) ? postLhsIndex$macro$22 : postRhsIndex$macro$24; | |
if (rhsMadeProgress$macro$29) { | |
evidence$11.checkForDrop__Z(); | |
} | |
; | |
var v$1 = evidence$11.Lfastparse_ParsingRun__f_successValue; | |
evidence$11.freshSuccess__O__I__Lfastparse_ParsingRun(v$1, nextIndex$macro$32); | |
} | |
; | |
if (evidence$11.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$11.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$21, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$28, rhsMsg$macro$27), lhsAggregate$macro$25.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$26), preRhsIndex$macro$23 === evidence$11.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg = evidence$11.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$11.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut$3); | |
if (!evidence$11.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$11.freshFailure__I__Lfastparse_ParsingRun(startPos$3); | |
} | |
; | |
evidence$11.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$11.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$11.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, msgToSet, msgToAggregate, false); | |
} | |
} | |
; | |
var lhsMsg$2 = evidence$11.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$2 = evidence$11.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$11.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$11.Lfastparse_ParsingRun__f_cut = !!(evidence$11.Lfastparse_ParsingRun__f_cut | oldCut$2); | |
} else if (evidence$11.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$2 = evidence$11.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$11.Lfastparse_ParsingRun__f_index = startPos$2; | |
if (verboseFailures$2) { | |
evidence$11.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, lhsMsg$2, lhsAggregate$2, false); | |
} | |
; | |
evidence$11.Lfastparse_ParsingRun__f_cut = false; | |
this.Character__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$11); | |
var rhsMsg$2 = evidence$11.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$2 = evidence$11.Lfastparse_ParsingRun__f_cut; | |
var endCut$2 = !!(rhsCut$2 | oldCut$2); | |
if (!evidence$11.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$2) { | |
evidence$11.freshFailure__I__Lfastparse_ParsingRun(startPos$2); | |
} | |
; | |
evidence$11.Lfastparse_ParsingRun__f_cut = endCut$2; | |
if (verboseFailures$2) { | |
var msgToSet$1 = lhsMsg$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$2); | |
var rassoc$3$2 = evidence$11.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$1 = lhsAggregate$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$2); | |
evidence$11.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, msgToSet$1, msgToAggregate$1, false); | |
} | |
} | |
; | |
var lhsMsg$3 = evidence$11.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$3 = evidence$11.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$11.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$11.Lfastparse_ParsingRun__f_cut = !!(evidence$11.Lfastparse_ParsingRun__f_cut | oldCut); | |
var x1$11 = evidence$11; | |
} else if (evidence$11.Lfastparse_ParsingRun__f_cut) { | |
var x1$11 = evidence$11; | |
} else { | |
var verboseFailures$3 = evidence$11.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$11.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures$3) { | |
evidence$11.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg$3, lhsAggregate$3, false); | |
} | |
; | |
evidence$11.Lfastparse_ParsingRun__f_cut = false; | |
this.EscapeCharacter__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$11); | |
var rhsMsg$3 = evidence$11.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$3 = evidence$11.Lfastparse_ParsingRun__f_cut; | |
var endCut$3 = !!(rhsCut$3 | oldCut); | |
if (!evidence$11.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$3) { | |
evidence$11.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$11.Lfastparse_ParsingRun__f_cut = endCut$3; | |
if (verboseFailures$3) { | |
var msgToSet$2 = lhsMsg$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$3); | |
var rassoc$3$3 = evidence$11.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$2 = lhsAggregate$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$3); | |
evidence$11.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet$2, msgToAggregate$2, false); | |
} | |
; | |
var x1$11 = evidence$11; | |
} | |
; | |
if (instrument) { | |
evidence$11.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("ClassCharacter").Lsourcecode_Name__f_value, x1$11.Lfastparse_ParsingRun__f_index, x1$11.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$11.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("ClassCharacter").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$11.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$11.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$11.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$11.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("ClassCharacter").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex); | |
var this$18 = x1$11.Lfastparse_ParsingRun__f_failureStack; | |
x1$11.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$18); | |
} | |
} | |
; | |
return x1$11; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.Escape__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$12) { | |
var startIndex = evidence$12.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$12.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$12.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("Escape").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$12.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$12.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$12.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$12.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$12.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$12.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$12.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$12); | |
if (!evidence$12.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$12.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$12.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$12.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$12.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$12.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$12.Lfastparse_ParsingRun__f_isSuccess && evidence$12.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$12.Lfastparse_ParsingRun__f_index; | |
var oldCut = evidence$12.Lfastparse_ParsingRun__f_cut; | |
evidence$12.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$12.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$2 = evidence$12.Lfastparse_ParsingRun__f_cut; | |
evidence$12.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$2 = evidence$12.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$3 = evidence$12.Lfastparse_ParsingRun__f_cut; | |
evidence$12.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$3 = evidence$12.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$4 = evidence$12.Lfastparse_ParsingRun__f_cut; | |
evidence$12.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$4 = evidence$12.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
this.WordBoundary__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$12); | |
var lhsMsg = evidence$12.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$12.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$12.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$12.Lfastparse_ParsingRun__f_cut = !!(evidence$12.Lfastparse_ParsingRun__f_cut | oldCut$4); | |
} else if (evidence$12.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures = evidence$12.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$12.Lfastparse_ParsingRun__f_index = startPos$4; | |
if (verboseFailures) { | |
evidence$12.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$4, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$12.Lfastparse_ParsingRun__f_cut = false; | |
if (this.Lcodes_quine_labs_recheck_regexp_Parser__f_hasNamedCapture) { | |
this.NamedBackReference__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$12); | |
} else { | |
$m_Lfastparse_package$().Fail__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$12); | |
} | |
; | |
var rhsMsg = evidence$12.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$12.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut$4); | |
if (!evidence$12.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$12.freshFailure__I__Lfastparse_ParsingRun(startPos$4); | |
} | |
; | |
evidence$12.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$12.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$12.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$4, msgToSet, msgToAggregate, false); | |
} | |
} | |
; | |
var lhsMsg$2 = evidence$12.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$2 = evidence$12.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$12.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$12.Lfastparse_ParsingRun__f_cut = !!(evidence$12.Lfastparse_ParsingRun__f_cut | oldCut$3); | |
} else if (evidence$12.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$2 = evidence$12.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$12.Lfastparse_ParsingRun__f_index = startPos$3; | |
if (verboseFailures$2) { | |
evidence$12.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, lhsMsg$2, lhsAggregate$2, false); | |
} | |
; | |
evidence$12.Lfastparse_ParsingRun__f_cut = false; | |
this.BackReference__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$12); | |
var rhsMsg$2 = evidence$12.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$2 = evidence$12.Lfastparse_ParsingRun__f_cut; | |
var endCut$2 = !!(rhsCut$2 | oldCut$3); | |
if (!evidence$12.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$2) { | |
evidence$12.freshFailure__I__Lfastparse_ParsingRun(startPos$3); | |
} | |
; | |
evidence$12.Lfastparse_ParsingRun__f_cut = endCut$2; | |
if (verboseFailures$2) { | |
var msgToSet$1 = lhsMsg$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$2); | |
var rassoc$3$2 = evidence$12.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$1 = lhsAggregate$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$2); | |
evidence$12.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, msgToSet$1, msgToAggregate$1, false); | |
} | |
} | |
; | |
var lhsMsg$3 = evidence$12.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$3 = evidence$12.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$12.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$12.Lfastparse_ParsingRun__f_cut = !!(evidence$12.Lfastparse_ParsingRun__f_cut | oldCut$2); | |
} else if (evidence$12.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$3 = evidence$12.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$12.Lfastparse_ParsingRun__f_index = startPos$2; | |
if (verboseFailures$3) { | |
evidence$12.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, lhsMsg$3, lhsAggregate$3, false); | |
} | |
; | |
evidence$12.Lfastparse_ParsingRun__f_cut = false; | |
this.EscapeClass__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$12); | |
var rhsMsg$3 = evidence$12.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$3 = evidence$12.Lfastparse_ParsingRun__f_cut; | |
var endCut$3 = !!(rhsCut$3 | oldCut$2); | |
if (!evidence$12.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$3) { | |
evidence$12.freshFailure__I__Lfastparse_ParsingRun(startPos$2); | |
} | |
; | |
evidence$12.Lfastparse_ParsingRun__f_cut = endCut$3; | |
if (verboseFailures$3) { | |
var msgToSet$2 = lhsMsg$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$3); | |
var rassoc$3$3 = evidence$12.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$2 = lhsAggregate$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$3); | |
evidence$12.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, msgToSet$2, msgToAggregate$2, false); | |
} | |
} | |
; | |
var lhsMsg$4 = evidence$12.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$4 = evidence$12.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$12.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$12.Lfastparse_ParsingRun__f_cut = !!(evidence$12.Lfastparse_ParsingRun__f_cut | oldCut); | |
} else if (!evidence$12.Lfastparse_ParsingRun__f_cut) { | |
var verboseFailures$4 = evidence$12.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$12.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures$4) { | |
evidence$12.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg$4, lhsAggregate$4, false); | |
} | |
; | |
evidence$12.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$(); | |
var parse0$5 = this.EscapeCharacter__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$12); | |
if (parse0$5.Lfastparse_ParsingRun__f_isSuccess) { | |
parse0$5.Lfastparse_ParsingRun__f_successValue = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$Character(parse0$5.Lfastparse_ParsingRun__f_successValue); | |
} | |
; | |
var rhsMsg$4 = evidence$12.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$4 = evidence$12.Lfastparse_ParsingRun__f_cut; | |
var endCut$4 = !!(rhsCut$4 | oldCut); | |
if (!evidence$12.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$4) { | |
evidence$12.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$12.Lfastparse_ParsingRun__f_cut = endCut$4; | |
if (verboseFailures$4) { | |
var msgToSet$3 = lhsMsg$4.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$4); | |
var rassoc$3$4 = evidence$12.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$3 = lhsAggregate$4.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$4); | |
evidence$12.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet$3, msgToAggregate$3, false); | |
} | |
} | |
; | |
var rhsAggregate$macro$7 = evidence$12.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$12.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$12.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14 = evidence$12; | |
} else { | |
var postRhsIndex$macro$5 = evidence$12.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$12.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14 = evidence$12.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$12.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13); | |
} | |
; | |
if (evidence$12.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$12.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4 === evidence$12.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$12.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$7 = evidence$12; | |
} else { | |
var postLhsIndex$macro$18 = evidence$12.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$12.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$12.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17) { | |
evidence$12.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27 = evidence$12.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$12.Lfastparse_ParsingRun__f_isSuccess && evidence$12.Lfastparse_ParsingRun__f_cut) { | |
var parse0$7 = evidence$12; | |
} else { | |
var preRhsIndex$macro$19 = evidence$12.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$12); | |
var rhsAggregate$macro$22 = evidence$12.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$12.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$12.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29 = evidence$12; | |
} else { | |
var postRhsIndex$macro$20 = evidence$12.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$12.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29 = evidence$12.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27, evidence$12.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28); | |
} | |
; | |
if (evidence$12.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$12.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$12.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$7 = res$macro$29; | |
} | |
} | |
; | |
if (!parse0$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$7; | |
} else { | |
var arg1 = parse0$7.Lfastparse_ParsingRun__f_successValue; | |
if (arg1 === null) { | |
throw new $c_s_MatchError(arg1); | |
} | |
; | |
var start2 = arg1.T3__f__1 | 0; | |
var node = arg1.T3__f__2; | |
var end = arg1.T3__f__3 | 0; | |
parse0$7.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node, start2, end); | |
var x1$7 = parse0$7; | |
} | |
; | |
if (instrument$1) { | |
evidence$12.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$17 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$17); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$12.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("Escape").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("Escape").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("Escape").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$24 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$24); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.WordBoundary__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$13) { | |
var startIndex = evidence$13.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$13.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$13.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WordBoundary").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$13.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$13.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$13.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$13.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$13); | |
if (!evidence$13.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$13.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$13.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$13.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$13.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$13.Lfastparse_ParsingRun__f_isSuccess && evidence$13.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var oldCut = evidence$13.Lfastparse_ParsingRun__f_cut; | |
evidence$13.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$13.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$4 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var input$macro$13 = evidence$13.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index = evidence$13.Lfastparse_ParsingRun__f_index; | |
var end = 2 + index | 0; | |
var input = evidence$13.Lfastparse_ParsingRun__f_input; | |
if (input.isReachable__I__Z(-1 + end | 0)) { | |
var this$5 = input.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$5.charCodeAt(index) | 0)) === 92) { | |
var index$1 = 1 + index | 0; | |
var this$6 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$6.charCodeAt(index$1) | 0)) === 98; | |
} else { | |
var $$x1 = false; | |
} | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$13.freshSuccessUnit__I__Lfastparse_ParsingRun(end); | |
} else { | |
evidence$13.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$13.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$13.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"\\\\b"')); | |
} | |
; | |
if (!evidence$13.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$5 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$8 = evidence$13.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$11 = evidence$13.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$5 > preLhsIndex$macro$4) { | |
evidence$13.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$13.Lfastparse_ParsingRun__f_isSuccess && evidence$13.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$6 = evidence$13.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$WordBoundary(false), evidence$13); | |
var rhsAggregate$macro$9 = evidence$13.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$10 = evidence$13.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$13.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$16 = evidence$13; | |
} else { | |
var postRhsIndex$macro$7 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$12 = postRhsIndex$macro$7 > preRhsIndex$macro$6; | |
var nextIndex$macro$15 = !rhsMadeProgress$macro$12 && input$macro$13.isReachable__I__Z(postRhsIndex$macro$7) ? postLhsIndex$macro$5 : postRhsIndex$macro$7; | |
if (rhsMadeProgress$macro$12) { | |
evidence$13.checkForDrop__Z(); | |
} | |
; | |
var v = evidence$13.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$16 = evidence$13.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$15); | |
} | |
; | |
if (evidence$13.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$13.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$4, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$11, rhsMsg$macro$10), lhsAggregate$macro$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$9), preRhsIndex$macro$6 === evidence$13.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var lhsMsg = evidence$13.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$13.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$13.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$13.Lfastparse_ParsingRun__f_cut = !!(evidence$13.Lfastparse_ParsingRun__f_cut | oldCut); | |
} else if (!evidence$13.Lfastparse_ParsingRun__f_cut) { | |
var verboseFailures = evidence$13.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$13.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures) { | |
evidence$13.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$13.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$21 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var input$macro$30 = evidence$13.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$2 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var end$2 = 2 + index$2 | 0; | |
var input$2 = evidence$13.Lfastparse_ParsingRun__f_input; | |
if (input$2.isReachable__I__Z(-1 + end$2 | 0)) { | |
var this$10 = input$2.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$10.charCodeAt(index$2) | 0)) === 92) { | |
var index$3 = 1 + index$2 | 0; | |
var this$11 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x2 = (65535 & (this$11.charCodeAt(index$3) | 0)) === 66; | |
} else { | |
var $$x2 = false; | |
} | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
evidence$13.freshSuccessUnit__I__Lfastparse_ParsingRun(end$2); | |
} else { | |
evidence$13.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$13.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$13.aggregateTerminal__I__F0__V(index$2, new $c_sjsr_AnonFunction0(() => '"\\\\B"')); | |
} | |
; | |
if (evidence$13.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$22 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$25 = evidence$13.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$28 = evidence$13.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$22 > preLhsIndex$macro$21) { | |
evidence$13.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$13.Lfastparse_ParsingRun__f_isSuccess && evidence$13.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$23 = evidence$13.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$WordBoundary(true), evidence$13); | |
var rhsAggregate$macro$26 = evidence$13.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$27 = evidence$13.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$13.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$24 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$29 = postRhsIndex$macro$24 > preRhsIndex$macro$23; | |
var nextIndex$macro$32 = !rhsMadeProgress$macro$29 && input$macro$30.isReachable__I__Z(postRhsIndex$macro$24) ? postLhsIndex$macro$22 : postRhsIndex$macro$24; | |
if (rhsMadeProgress$macro$29) { | |
evidence$13.checkForDrop__Z(); | |
} | |
; | |
var v$1 = evidence$13.Lfastparse_ParsingRun__f_successValue; | |
evidence$13.freshSuccess__O__I__Lfastparse_ParsingRun(v$1, nextIndex$macro$32); | |
} | |
; | |
if (evidence$13.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$13.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$21, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$28, rhsMsg$macro$27), lhsAggregate$macro$25.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$26), preRhsIndex$macro$23 === evidence$13.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg = evidence$13.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$13.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut); | |
if (!evidence$13.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$13.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$13.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$13.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$13.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet, msgToAggregate, false); | |
} | |
} | |
; | |
var rhsAggregate$macro$7 = evidence$13.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$13.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$13.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14 = evidence$13; | |
} else { | |
var postRhsIndex$macro$5 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$13.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14 = evidence$13.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$13.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13); | |
} | |
; | |
if (evidence$13.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$13.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4 === evidence$13.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$13.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$3 = evidence$13; | |
} else { | |
var postLhsIndex$macro$18 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$13.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$13.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17) { | |
evidence$13.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27 = evidence$13.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$13.Lfastparse_ParsingRun__f_isSuccess && evidence$13.Lfastparse_ParsingRun__f_cut) { | |
var parse0$3 = evidence$13; | |
} else { | |
var preRhsIndex$macro$19 = evidence$13.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$13); | |
var rhsAggregate$macro$22 = evidence$13.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$13.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$13.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29 = evidence$13; | |
} else { | |
var postRhsIndex$macro$20 = evidence$13.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$13.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29 = evidence$13.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27, evidence$13.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28); | |
} | |
; | |
if (evidence$13.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$13.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$13.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$3 = res$macro$29; | |
} | |
} | |
; | |
if (!parse0$3.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$3; | |
} else { | |
var arg1 = parse0$3.Lfastparse_ParsingRun__f_successValue; | |
if (arg1 === null) { | |
throw new $c_s_MatchError(arg1); | |
} | |
; | |
var start2 = arg1.T3__f__1 | 0; | |
var node = arg1.T3__f__2; | |
var end$1 = arg1.T3__f__3 | 0; | |
parse0$3.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node, start2, end$1); | |
var x1$7 = parse0$3; | |
} | |
; | |
if (instrument$1) { | |
evidence$13.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$21 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$21); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$13.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WordBoundary").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WordBoundary").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("WordBoundary").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$28 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$28); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.BackReference__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$14) { | |
var startIndex = evidence$14.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$14.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$14.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("BackReference").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$14.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$14.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$14.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$14.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$14); | |
if (!evidence$14.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$14.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$14.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$14.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$14.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$14.Lfastparse_ParsingRun__f_isSuccess && evidence$14.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$14.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$17$1 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var input$macro$26$1 = evidence$14.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$2$1 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var input$macro$11$1 = evidence$14.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input = evidence$14.Lfastparse_ParsingRun__f_input; | |
var index = evidence$14.Lfastparse_ParsingRun__f_index; | |
if (input.isReachable__I__Z(index)) { | |
var this$6 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$6.charCodeAt(index) | 0)) === 92; | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$14.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index | 0); | |
} else { | |
evidence$14.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$14.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$14.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"\\\\"')); | |
} | |
; | |
if (!evidence$14.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3$1 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6$1 = evidence$14.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9$1 = evidence$14.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3$1 > preLhsIndex$macro$2$1) { | |
evidence$14.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$14.Lfastparse_ParsingRun__f_isSuccess && evidence$14.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4$1 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var startPos = evidence$14.Lfastparse_ParsingRun__f_index; | |
var startCut = evidence$14.Lfastparse_ParsingRun__f_cut; | |
var oldNoCut = evidence$14.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$14.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
var startTerminals = evidence$14.Lfastparse_ParsingRun__f_failureTerminalAggregate; | |
var input$1 = evidence$14.Lfastparse_ParsingRun__f_input; | |
var index$1 = evidence$14.Lfastparse_ParsingRun__f_index; | |
if (input$1.isReachable__I__Z(index$1)) { | |
var this$10 = input$1.Lfastparse_IndexedParserInput__f_data; | |
var $$x2 = (65535 & (this$10.charCodeAt(index$1) | 0)) === 48; | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
evidence$14.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$1 | 0); | |
} else { | |
evidence$14.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$14.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$14.aggregateTerminal__I__F0__V(index$1, new $c_sjsr_AnonFunction0(() => '"0"')); | |
} | |
; | |
evidence$14.Lfastparse_ParsingRun__f_noDropBuffer = oldNoCut; | |
var msg = evidence$14.Lfastparse_ParsingRun__f_shortParserMsg; | |
var res$2 = evidence$14.Lfastparse_ParsingRun__f_isSuccess ? evidence$14.freshFailure__I__Lfastparse_ParsingRun(startPos) : evidence$14.freshSuccessUnit__I__Lfastparse_ParsingRun(startPos); | |
if (evidence$14.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$14.Lfastparse_ParsingRun__f_failureTerminalAggregate = startTerminals; | |
evidence$14.Lfastparse_ParsingRun__f_failureGroupAggregate = $m_Lfastparse_internal_Msgs$().Lfastparse_internal_Msgs$__f_empty; | |
evidence$14.setMsg__I__F0__V(startPos, new $c_sjsr_AnonFunction0(((msg$1) => () => "!" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$1.Lfastparse_internal_Msgs__f_value))(msg))); | |
} | |
; | |
res$2.Lfastparse_ParsingRun__f_cut = startCut; | |
var rhsAggregate$macro$7 = evidence$14.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$14.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$14.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14 = evidence$14; | |
} else { | |
var postRhsIndex$macro$5 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4$1; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11$1.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3$1 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$14.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14 = evidence$14.freshSuccess__O__I__Lfastparse_ParsingRun(void 0, nextIndex$macro$13); | |
} | |
; | |
if (evidence$14.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$14.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2$1, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9$1, rhsMsg$macro$8), lhsAggregate$macro$6$1.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4$1 === evidence$14.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (evidence$14.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$18 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$14.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$14.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17$1) { | |
evidence$14.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$14.Lfastparse_ParsingRun__f_isSuccess && evidence$14.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$19 = evidence$14.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var parse0$2 = this.Digits__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$14); | |
if (parse0$2.Lfastparse_ParsingRun__f_isSuccess) { | |
var oldCapturing = parse0$2.Lfastparse_ParsingRun__f_noDropBuffer; | |
var successValue = parse0$2.Lfastparse_ParsingRun__f_successValue; | |
parse0$2.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
parse0$2.freshSuccessUnit__Lfastparse_ParsingRun(); | |
parse0$2.Lfastparse_ParsingRun__f_noDropBuffer = oldCapturing; | |
if (!(!parse0$2.Lfastparse_ParsingRun__f_isSuccess && parse0$2.Lfastparse_ParsingRun__f_cut)) { | |
var arg1 = successValue | 0; | |
if (this.Lcodes_quine_labs_recheck_regexp_Parser__f_additional && !this.Lcodes_quine_labs_recheck_regexp_Parser__f_unicode) { | |
if (arg1 <= this.Lcodes_quine_labs_recheck_regexp_Parser__f_captures) { | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$BackReference(arg1), evidence$14); | |
} else { | |
$m_Lfastparse_package$().Fail__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$14); | |
} | |
} else { | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$BackReference(arg1), evidence$14); | |
} | |
} | |
} | |
; | |
var rhsAggregate$macro$22 = evidence$14.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$14.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$14.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$20 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26$1.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$14.checkForDrop__Z(); | |
} | |
; | |
var v = evidence$14.Lfastparse_ParsingRun__f_successValue; | |
evidence$14.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$28); | |
} | |
; | |
if (evidence$14.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$14.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17$1, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$14.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsAggregate$macro$7$1 = evidence$14.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8$1 = evidence$14.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$14.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14$1 = evidence$14; | |
} else { | |
var postRhsIndex$macro$5$1 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10$1 = postRhsIndex$macro$5$1 > preRhsIndex$macro$4; | |
var nextIndex$macro$13$1 = !rhsMadeProgress$macro$10$1 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5$1) ? postLhsIndex$macro$3 : postRhsIndex$macro$5$1; | |
if (rhsMadeProgress$macro$10$1) { | |
evidence$14.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14$1 = evidence$14.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$14.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13$1); | |
} | |
; | |
if (evidence$14.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$14.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8$1), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7$1), preRhsIndex$macro$4 === evidence$14.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$14.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$4 = evidence$14; | |
} else { | |
var postLhsIndex$macro$18$1 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21$1 = evidence$14.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24$1 = evidence$14.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18$1 > preLhsIndex$macro$17) { | |
evidence$14.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27$1 = evidence$14.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$14.Lfastparse_ParsingRun__f_isSuccess && evidence$14.Lfastparse_ParsingRun__f_cut) { | |
var parse0$4 = evidence$14; | |
} else { | |
var preRhsIndex$macro$19$1 = evidence$14.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$14); | |
var rhsAggregate$macro$22$1 = evidence$14.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23$1 = evidence$14.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$14.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29$1 = evidence$14; | |
} else { | |
var postRhsIndex$macro$20$1 = evidence$14.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25$1 = postRhsIndex$macro$20$1 > preRhsIndex$macro$19$1; | |
var nextIndex$macro$28$1 = !rhsMadeProgress$macro$25$1 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20$1) ? postLhsIndex$macro$18$1 : postRhsIndex$macro$20$1; | |
if (rhsMadeProgress$macro$25$1) { | |
evidence$14.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29$1 = evidence$14.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27$1, evidence$14.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28$1); | |
} | |
; | |
if (evidence$14.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$14.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24$1, rhsMsg$macro$23$1), lhsAggregate$macro$21$1.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22$1), preRhsIndex$macro$19$1 === evidence$14.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$4 = res$macro$29$1; | |
} | |
} | |
; | |
if (!parse0$4.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$4; | |
} else { | |
var arg1$1 = parse0$4.Lfastparse_ParsingRun__f_successValue; | |
if (arg1$1 === null) { | |
throw new $c_s_MatchError(arg1$1); | |
} | |
; | |
var start2 = arg1$1.T3__f__1 | 0; | |
var node = arg1$1.T3__f__2; | |
var end = arg1$1.T3__f__3 | 0; | |
parse0$4.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node, start2, end); | |
var x1$7 = parse0$4; | |
} | |
; | |
if (instrument$1) { | |
evidence$14.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$23 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$23); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$14.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("BackReference").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("BackReference").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("BackReference").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$30 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$30); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.NamedBackReference__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$15) { | |
var startIndex = evidence$15.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$15.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$15.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("NamedBackReference").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$15.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$15.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$15.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$15.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$15); | |
if (!evidence$15.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$15.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$15.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$15.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$15.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$15.Lfastparse_ParsingRun__f_isSuccess && evidence$15.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$15.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var this$4 = $m_Lfastparse_Implicits$Sequencer$(); | |
this$4.UnitSequencer0__Lfastparse_Implicits$LowPriSequencer$UnitSequencer0$(); | |
var preLhsIndex$macro$19 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var input$macro$28 = evidence$15.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$4 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var input$macro$13 = evidence$15.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index = evidence$15.Lfastparse_ParsingRun__f_index; | |
var end = 3 + index | 0; | |
var input = evidence$15.Lfastparse_ParsingRun__f_input; | |
if (input.isReachable__I__Z(-1 + end | 0)) { | |
var this$6 = input.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$6.charCodeAt(index) | 0)) === 92) { | |
var index$1 = 1 + index | 0; | |
var this$7 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x2 = (65535 & (this$7.charCodeAt(index$1) | 0)) === 107; | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
var index$2 = 2 + index | 0; | |
var this$8 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$8.charCodeAt(index$2) | 0)) === 60; | |
} else { | |
var $$x1 = false; | |
} | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$15.freshSuccessUnit__I__Lfastparse_ParsingRun(end); | |
} else { | |
evidence$15.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$15.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$15.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"\\\\k<"')); | |
} | |
; | |
if (!evidence$15.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$5 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$8 = evidence$15.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$11 = evidence$15.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$5 > preLhsIndex$macro$4) { | |
evidence$15.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$15.Lfastparse_ParsingRun__f_isSuccess && evidence$15.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$6 = evidence$15.Lfastparse_ParsingRun__f_index; | |
this.CaptureName__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$15); | |
var rhsAggregate$macro$9 = evidence$15.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$10 = evidence$15.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$15.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$16 = evidence$15; | |
} else { | |
var postRhsIndex$macro$7 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$12 = postRhsIndex$macro$7 > preRhsIndex$macro$6; | |
var nextIndex$macro$15 = !rhsMadeProgress$macro$12 && input$macro$13.isReachable__I__Z(postRhsIndex$macro$7) ? postLhsIndex$macro$5 : postRhsIndex$macro$7; | |
if (rhsMadeProgress$macro$12) { | |
evidence$15.checkForDrop__Z(); | |
} | |
; | |
var v = evidence$15.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$16 = evidence$15.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$15); | |
} | |
; | |
if (evidence$15.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$15.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$4, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$11, rhsMsg$macro$10), lhsAggregate$macro$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$9), preRhsIndex$macro$6 === evidence$15.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$15.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$2 = evidence$15; | |
} else { | |
var postLhsIndex$macro$20 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$23 = evidence$15.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$26 = evidence$15.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$20 > preLhsIndex$macro$19) { | |
evidence$15.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$29 = evidence$15.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$15.Lfastparse_ParsingRun__f_isSuccess && evidence$15.Lfastparse_ParsingRun__f_cut) { | |
var parse0$2 = evidence$15; | |
} else { | |
var preRhsIndex$macro$21 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var input$2 = evidence$15.Lfastparse_ParsingRun__f_input; | |
var index$2$1 = evidence$15.Lfastparse_ParsingRun__f_index; | |
if (input$2.isReachable__I__Z(index$2$1)) { | |
var this$11 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x3 = (65535 & (this$11.charCodeAt(index$2$1) | 0)) === 62; | |
} else { | |
var $$x3 = false; | |
} | |
; | |
if ($$x3) { | |
evidence$15.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$2$1 | 0); | |
} else { | |
evidence$15.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$15.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$15.aggregateTerminal__I__F0__V(index$2$1, new $c_sjsr_AnonFunction0(() => '">"')); | |
} | |
; | |
var rhsAggregate$macro$24 = evidence$15.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$25 = evidence$15.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$15.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$31 = evidence$15; | |
} else { | |
var postRhsIndex$macro$22 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$27 = postRhsIndex$macro$22 > preRhsIndex$macro$21; | |
var nextIndex$macro$30 = !rhsMadeProgress$macro$27 && input$macro$28.isReachable__I__Z(postRhsIndex$macro$22) ? postLhsIndex$macro$20 : postRhsIndex$macro$22; | |
if (rhsMadeProgress$macro$27) { | |
evidence$15.checkForDrop__Z(); | |
} | |
; | |
var t = lhsValue$macro$29; | |
var res$macro$31 = evidence$15.freshSuccess__O__I__Lfastparse_ParsingRun(t, nextIndex$macro$30); | |
} | |
; | |
if (evidence$15.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$15.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$19, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$26, rhsMsg$macro$25), lhsAggregate$macro$23.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$24), preRhsIndex$macro$21 === evidence$15.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$2 = res$macro$31; | |
} | |
} | |
; | |
if (parse0$2.Lfastparse_ParsingRun__f_isSuccess) { | |
var arg1 = parse0$2.Lfastparse_ParsingRun__f_successValue; | |
parse0$2.Lfastparse_ParsingRun__f_successValue = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$NamedBackReference(-1, arg1); | |
} | |
; | |
var rhsAggregate$macro$7 = evidence$15.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$15.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$15.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14 = evidence$15; | |
} else { | |
var postRhsIndex$macro$5 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$15.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14 = evidence$15.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$15.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13); | |
} | |
; | |
if (evidence$15.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$15.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4 === evidence$15.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$15.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$4 = evidence$15; | |
} else { | |
var postLhsIndex$macro$18 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$15.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$15.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17) { | |
evidence$15.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27 = evidence$15.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$15.Lfastparse_ParsingRun__f_isSuccess && evidence$15.Lfastparse_ParsingRun__f_cut) { | |
var parse0$4 = evidence$15; | |
} else { | |
var preRhsIndex$macro$19 = evidence$15.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$15); | |
var rhsAggregate$macro$22 = evidence$15.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$15.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$15.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29 = evidence$15; | |
} else { | |
var postRhsIndex$macro$20 = evidence$15.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$15.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29 = evidence$15.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27, evidence$15.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28); | |
} | |
; | |
if (evidence$15.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$15.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$15.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$4 = res$macro$29; | |
} | |
} | |
; | |
if (!parse0$4.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$4; | |
} else { | |
var arg1$1 = parse0$4.Lfastparse_ParsingRun__f_successValue; | |
if (arg1$1 === null) { | |
throw new $c_s_MatchError(arg1$1); | |
} | |
; | |
var start2 = arg1$1.T3__f__1 | 0; | |
var node = arg1$1.T3__f__2; | |
var end$1 = arg1$1.T3__f__3 | 0; | |
parse0$4.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node, start2, end$1); | |
var x1$7 = parse0$4; | |
} | |
; | |
if (instrument$1) { | |
evidence$15.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$21 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$21); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$15.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("NamedBackReference").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("NamedBackReference").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("NamedBackReference").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$28 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$28); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.EscapeClass__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$16) { | |
var startIndex = evidence$16.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$16.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$16.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("EscapeClass").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$16.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$16.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$16.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$16.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$16); | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$16.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess && evidence$16.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var oldCut = evidence$16.Lfastparse_ParsingRun__f_cut; | |
evidence$16.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$2 = evidence$16.Lfastparse_ParsingRun__f_cut; | |
evidence$16.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$2 = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$3 = evidence$16.Lfastparse_ParsingRun__f_cut; | |
evidence$16.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$3 = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$4 = evidence$16.Lfastparse_ParsingRun__f_cut; | |
evidence$16.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$4 = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$5 = evidence$16.Lfastparse_ParsingRun__f_cut; | |
evidence$16.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$5 = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$6 = evidence$16.Lfastparse_ParsingRun__f_cut; | |
evidence$16.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$6 = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$4 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var input$macro$13 = evidence$16.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index = evidence$16.Lfastparse_ParsingRun__f_index; | |
var end = 2 + index | 0; | |
var input = evidence$16.Lfastparse_ParsingRun__f_input; | |
if (input.isReachable__I__Z(-1 + end | 0)) { | |
var this$5 = input.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$5.charCodeAt(index) | 0)) === 92) { | |
var index$1 = 1 + index | 0; | |
var this$6 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$6.charCodeAt(index$1) | 0)) === 119; | |
} else { | |
var $$x1 = false; | |
} | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$16.freshSuccessUnit__I__Lfastparse_ParsingRun(end); | |
} else { | |
evidence$16.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"\\\\w"')); | |
} | |
; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$5 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$8 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$11 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$5 > preLhsIndex$macro$4) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess && evidence$16.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$6 = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$SimpleEscapeClass(false, $m_Lcodes_quine_labs_recheck_regexp_Pattern$EscapeClassKind$Word$()), evidence$16); | |
var rhsAggregate$macro$9 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$10 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$16 = evidence$16; | |
} else { | |
var postRhsIndex$macro$7 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$12 = postRhsIndex$macro$7 > preRhsIndex$macro$6; | |
var nextIndex$macro$15 = !rhsMadeProgress$macro$12 && input$macro$13.isReachable__I__Z(postRhsIndex$macro$7) ? postLhsIndex$macro$5 : postRhsIndex$macro$7; | |
if (rhsMadeProgress$macro$12) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
var v = evidence$16.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$16 = evidence$16.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$15); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$4, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$11, rhsMsg$macro$10), lhsAggregate$macro$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$9), preRhsIndex$macro$6 === evidence$16.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var lhsMsg = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$16.Lfastparse_ParsingRun__f_cut = !!(evidence$16.Lfastparse_ParsingRun__f_cut | oldCut$6); | |
} else if (evidence$16.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures = evidence$16.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$16.Lfastparse_ParsingRun__f_index = startPos$6; | |
if (verboseFailures) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$6, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$16.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$21 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var input$macro$30 = evidence$16.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$2 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var end$2 = 2 + index$2 | 0; | |
var input$2 = evidence$16.Lfastparse_ParsingRun__f_input; | |
if (input$2.isReachable__I__Z(-1 + end$2 | 0)) { | |
var this$10 = input$2.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$10.charCodeAt(index$2) | 0)) === 92) { | |
var index$3 = 1 + index$2 | 0; | |
var this$11 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x2 = (65535 & (this$11.charCodeAt(index$3) | 0)) === 87; | |
} else { | |
var $$x2 = false; | |
} | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
evidence$16.freshSuccessUnit__I__Lfastparse_ParsingRun(end$2); | |
} else { | |
evidence$16.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateTerminal__I__F0__V(index$2, new $c_sjsr_AnonFunction0(() => '"\\\\W"')); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$22 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$25 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$28 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$22 > preLhsIndex$macro$21) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$16.Lfastparse_ParsingRun__f_isSuccess && evidence$16.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$23 = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$SimpleEscapeClass(true, $m_Lcodes_quine_labs_recheck_regexp_Pattern$EscapeClassKind$Word$()), evidence$16); | |
var rhsAggregate$macro$26 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$27 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$24 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$29 = postRhsIndex$macro$24 > preRhsIndex$macro$23; | |
var nextIndex$macro$32 = !rhsMadeProgress$macro$29 && input$macro$30.isReachable__I__Z(postRhsIndex$macro$24) ? postLhsIndex$macro$22 : postRhsIndex$macro$24; | |
if (rhsMadeProgress$macro$29) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
var v$1 = evidence$16.Lfastparse_ParsingRun__f_successValue; | |
evidence$16.freshSuccess__O__I__Lfastparse_ParsingRun(v$1, nextIndex$macro$32); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$21, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$28, rhsMsg$macro$27), lhsAggregate$macro$25.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$26), preRhsIndex$macro$23 === evidence$16.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$16.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut$6); | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$16.freshFailure__I__Lfastparse_ParsingRun(startPos$6); | |
} | |
; | |
evidence$16.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$6, msgToSet, msgToAggregate, false); | |
} | |
} | |
; | |
var lhsMsg$2 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$2 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$16.Lfastparse_ParsingRun__f_cut = !!(evidence$16.Lfastparse_ParsingRun__f_cut | oldCut$5); | |
} else if (evidence$16.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$2 = evidence$16.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$16.Lfastparse_ParsingRun__f_index = startPos$5; | |
if (verboseFailures$2) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$5, lhsMsg$2, lhsAggregate$2, false); | |
} | |
; | |
evidence$16.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$38 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var input$macro$47 = evidence$16.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$3$1 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var end$3 = 2 + index$3$1 | 0; | |
var input$3 = evidence$16.Lfastparse_ParsingRun__f_input; | |
if (input$3.isReachable__I__Z(-1 + end$3 | 0)) { | |
var this$15 = input$3.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$15.charCodeAt(index$3$1) | 0)) === 92) { | |
var index$4 = 1 + index$3$1 | 0; | |
var this$16 = input$3.Lfastparse_IndexedParserInput__f_data; | |
var $$x3 = (65535 & (this$16.charCodeAt(index$4) | 0)) === 100; | |
} else { | |
var $$x3 = false; | |
} | |
} else { | |
var $$x3 = false; | |
} | |
; | |
if ($$x3) { | |
evidence$16.freshSuccessUnit__I__Lfastparse_ParsingRun(end$3); | |
} else { | |
evidence$16.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateTerminal__I__F0__V(index$3$1, new $c_sjsr_AnonFunction0(() => '"\\\\d"')); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$39 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$42 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$45 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$39 > preLhsIndex$macro$38) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$16.Lfastparse_ParsingRun__f_isSuccess && evidence$16.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$40 = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$SimpleEscapeClass(false, $m_Lcodes_quine_labs_recheck_regexp_Pattern$EscapeClassKind$Digit$()), evidence$16); | |
var rhsAggregate$macro$43 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$44 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$41 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$46 = postRhsIndex$macro$41 > preRhsIndex$macro$40; | |
var nextIndex$macro$49 = !rhsMadeProgress$macro$46 && input$macro$47.isReachable__I__Z(postRhsIndex$macro$41) ? postLhsIndex$macro$39 : postRhsIndex$macro$41; | |
if (rhsMadeProgress$macro$46) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
var v$2 = evidence$16.Lfastparse_ParsingRun__f_successValue; | |
evidence$16.freshSuccess__O__I__Lfastparse_ParsingRun(v$2, nextIndex$macro$49); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$38, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$45, rhsMsg$macro$44), lhsAggregate$macro$42.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$43), preRhsIndex$macro$40 === evidence$16.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$2 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$2 = evidence$16.Lfastparse_ParsingRun__f_cut; | |
var endCut$2 = !!(rhsCut$2 | oldCut$5); | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$2) { | |
evidence$16.freshFailure__I__Lfastparse_ParsingRun(startPos$5); | |
} | |
; | |
evidence$16.Lfastparse_ParsingRun__f_cut = endCut$2; | |
if (verboseFailures$2) { | |
var msgToSet$1 = lhsMsg$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$2); | |
var rassoc$3$3 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$1 = lhsAggregate$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$3); | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$5, msgToSet$1, msgToAggregate$1, false); | |
} | |
} | |
; | |
var lhsMsg$3 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$3 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$16.Lfastparse_ParsingRun__f_cut = !!(evidence$16.Lfastparse_ParsingRun__f_cut | oldCut$4); | |
} else if (evidence$16.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$3 = evidence$16.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$16.Lfastparse_ParsingRun__f_index = startPos$4; | |
if (verboseFailures$3) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$4, lhsMsg$3, lhsAggregate$3, false); | |
} | |
; | |
evidence$16.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$55 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var input$macro$64 = evidence$16.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$4$1 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var end$4 = 2 + index$4$1 | 0; | |
var input$4 = evidence$16.Lfastparse_ParsingRun__f_input; | |
if (input$4.isReachable__I__Z(-1 + end$4 | 0)) { | |
var this$20 = input$4.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$20.charCodeAt(index$4$1) | 0)) === 92) { | |
var index$5 = 1 + index$4$1 | 0; | |
var this$21 = input$4.Lfastparse_IndexedParserInput__f_data; | |
var $$x4 = (65535 & (this$21.charCodeAt(index$5) | 0)) === 68; | |
} else { | |
var $$x4 = false; | |
} | |
} else { | |
var $$x4 = false; | |
} | |
; | |
if ($$x4) { | |
evidence$16.freshSuccessUnit__I__Lfastparse_ParsingRun(end$4); | |
} else { | |
evidence$16.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateTerminal__I__F0__V(index$4$1, new $c_sjsr_AnonFunction0(() => '"\\\\D"')); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$56 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$59 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$62 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$56 > preLhsIndex$macro$55) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$16.Lfastparse_ParsingRun__f_isSuccess && evidence$16.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$57 = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$SimpleEscapeClass(true, $m_Lcodes_quine_labs_recheck_regexp_Pattern$EscapeClassKind$Digit$()), evidence$16); | |
var rhsAggregate$macro$60 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$61 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$58 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$63 = postRhsIndex$macro$58 > preRhsIndex$macro$57; | |
var nextIndex$macro$66 = !rhsMadeProgress$macro$63 && input$macro$64.isReachable__I__Z(postRhsIndex$macro$58) ? postLhsIndex$macro$56 : postRhsIndex$macro$58; | |
if (rhsMadeProgress$macro$63) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
var v$3 = evidence$16.Lfastparse_ParsingRun__f_successValue; | |
evidence$16.freshSuccess__O__I__Lfastparse_ParsingRun(v$3, nextIndex$macro$66); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$55, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$62, rhsMsg$macro$61), lhsAggregate$macro$59.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$60), preRhsIndex$macro$57 === evidence$16.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$3 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$3 = evidence$16.Lfastparse_ParsingRun__f_cut; | |
var endCut$3 = !!(rhsCut$3 | oldCut$4); | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$3) { | |
evidence$16.freshFailure__I__Lfastparse_ParsingRun(startPos$4); | |
} | |
; | |
evidence$16.Lfastparse_ParsingRun__f_cut = endCut$3; | |
if (verboseFailures$3) { | |
var msgToSet$2 = lhsMsg$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$3); | |
var rassoc$3$4 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$2 = lhsAggregate$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$4); | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$4, msgToSet$2, msgToAggregate$2, false); | |
} | |
} | |
; | |
var lhsMsg$4 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$4 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$16.Lfastparse_ParsingRun__f_cut = !!(evidence$16.Lfastparse_ParsingRun__f_cut | oldCut$3); | |
} else if (evidence$16.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$4 = evidence$16.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$16.Lfastparse_ParsingRun__f_index = startPos$3; | |
if (verboseFailures$4) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, lhsMsg$4, lhsAggregate$4, false); | |
} | |
; | |
evidence$16.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$72 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var input$macro$81 = evidence$16.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$5$1 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var end$5 = 2 + index$5$1 | 0; | |
var input$5 = evidence$16.Lfastparse_ParsingRun__f_input; | |
if (input$5.isReachable__I__Z(-1 + end$5 | 0)) { | |
var this$25 = input$5.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$25.charCodeAt(index$5$1) | 0)) === 92) { | |
var index$6 = 1 + index$5$1 | 0; | |
var this$26 = input$5.Lfastparse_IndexedParserInput__f_data; | |
var $$x5 = (65535 & (this$26.charCodeAt(index$6) | 0)) === 115; | |
} else { | |
var $$x5 = false; | |
} | |
} else { | |
var $$x5 = false; | |
} | |
; | |
if ($$x5) { | |
evidence$16.freshSuccessUnit__I__Lfastparse_ParsingRun(end$5); | |
} else { | |
evidence$16.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateTerminal__I__F0__V(index$5$1, new $c_sjsr_AnonFunction0(() => '"\\\\s"')); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$73 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$76 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$79 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$73 > preLhsIndex$macro$72) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$16.Lfastparse_ParsingRun__f_isSuccess && evidence$16.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$74 = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$SimpleEscapeClass(false, $m_Lcodes_quine_labs_recheck_regexp_Pattern$EscapeClassKind$Space$()), evidence$16); | |
var rhsAggregate$macro$77 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$78 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$75 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$80 = postRhsIndex$macro$75 > preRhsIndex$macro$74; | |
var nextIndex$macro$83 = !rhsMadeProgress$macro$80 && input$macro$81.isReachable__I__Z(postRhsIndex$macro$75) ? postLhsIndex$macro$73 : postRhsIndex$macro$75; | |
if (rhsMadeProgress$macro$80) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
var v$4 = evidence$16.Lfastparse_ParsingRun__f_successValue; | |
evidence$16.freshSuccess__O__I__Lfastparse_ParsingRun(v$4, nextIndex$macro$83); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$72, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$79, rhsMsg$macro$78), lhsAggregate$macro$76.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$77), preRhsIndex$macro$74 === evidence$16.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$4 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$4 = evidence$16.Lfastparse_ParsingRun__f_cut; | |
var endCut$4 = !!(rhsCut$4 | oldCut$3); | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$4) { | |
evidence$16.freshFailure__I__Lfastparse_ParsingRun(startPos$3); | |
} | |
; | |
evidence$16.Lfastparse_ParsingRun__f_cut = endCut$4; | |
if (verboseFailures$4) { | |
var msgToSet$3 = lhsMsg$4.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$4); | |
var rassoc$3$5 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$3 = lhsAggregate$4.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$5); | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, msgToSet$3, msgToAggregate$3, false); | |
} | |
} | |
; | |
var lhsMsg$5 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$5 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$16.Lfastparse_ParsingRun__f_cut = !!(evidence$16.Lfastparse_ParsingRun__f_cut | oldCut$2); | |
} else if (evidence$16.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$5 = evidence$16.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$16.Lfastparse_ParsingRun__f_index = startPos$2; | |
if (verboseFailures$5) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, lhsMsg$5, lhsAggregate$5, false); | |
} | |
; | |
evidence$16.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$89 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var input$macro$98 = evidence$16.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$6$1 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var end$6 = 2 + index$6$1 | 0; | |
var input$6 = evidence$16.Lfastparse_ParsingRun__f_input; | |
if (input$6.isReachable__I__Z(-1 + end$6 | 0)) { | |
var this$30 = input$6.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$30.charCodeAt(index$6$1) | 0)) === 92) { | |
var index$7 = 1 + index$6$1 | 0; | |
var this$31 = input$6.Lfastparse_IndexedParserInput__f_data; | |
var $$x6 = (65535 & (this$31.charCodeAt(index$7) | 0)) === 83; | |
} else { | |
var $$x6 = false; | |
} | |
} else { | |
var $$x6 = false; | |
} | |
; | |
if ($$x6) { | |
evidence$16.freshSuccessUnit__I__Lfastparse_ParsingRun(end$6); | |
} else { | |
evidence$16.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateTerminal__I__F0__V(index$6$1, new $c_sjsr_AnonFunction0(() => '"\\\\S"')); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$90 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$93 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$96 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$90 > preLhsIndex$macro$89) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$16.Lfastparse_ParsingRun__f_isSuccess && evidence$16.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$91 = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_regexp_Pattern$SimpleEscapeClass(true, $m_Lcodes_quine_labs_recheck_regexp_Pattern$EscapeClassKind$Space$()), evidence$16); | |
var rhsAggregate$macro$94 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$95 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$92 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$97 = postRhsIndex$macro$92 > preRhsIndex$macro$91; | |
var nextIndex$macro$100 = !rhsMadeProgress$macro$97 && input$macro$98.isReachable__I__Z(postRhsIndex$macro$92) ? postLhsIndex$macro$90 : postRhsIndex$macro$92; | |
if (rhsMadeProgress$macro$97) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
var v$5 = evidence$16.Lfastparse_ParsingRun__f_successValue; | |
evidence$16.freshSuccess__O__I__Lfastparse_ParsingRun(v$5, nextIndex$macro$100); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$89, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$96, rhsMsg$macro$95), lhsAggregate$macro$93.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$94), preRhsIndex$macro$91 === evidence$16.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$5 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$5 = evidence$16.Lfastparse_ParsingRun__f_cut; | |
var endCut$5 = !!(rhsCut$5 | oldCut$2); | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$5) { | |
evidence$16.freshFailure__I__Lfastparse_ParsingRun(startPos$2); | |
} | |
; | |
evidence$16.Lfastparse_ParsingRun__f_cut = endCut$5; | |
if (verboseFailures$5) { | |
var msgToSet$4 = lhsMsg$5.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$5); | |
var rassoc$3$6 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$4 = lhsAggregate$5.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$6); | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, msgToSet$4, msgToAggregate$4, false); | |
} | |
} | |
; | |
var lhsMsg$6 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$6 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$16.Lfastparse_ParsingRun__f_cut = !!(evidence$16.Lfastparse_ParsingRun__f_cut | oldCut); | |
} else if (!evidence$16.Lfastparse_ParsingRun__f_cut) { | |
var verboseFailures$6 = evidence$16.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$16.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures$6) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg$6, lhsAggregate$6, false); | |
} | |
; | |
evidence$16.Lfastparse_ParsingRun__f_cut = false; | |
if (this.Lcodes_quine_labs_recheck_regexp_Parser__f_unicode) { | |
this.UnicodeEscapeClass__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$16); | |
} else { | |
$m_Lfastparse_package$().Fail__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$16); | |
} | |
; | |
var rhsMsg$6 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$6 = evidence$16.Lfastparse_ParsingRun__f_cut; | |
var endCut$6 = !!(rhsCut$6 | oldCut); | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$6) { | |
evidence$16.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$16.Lfastparse_ParsingRun__f_cut = endCut$6; | |
if (verboseFailures$6) { | |
var msgToSet$5 = lhsMsg$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$6); | |
var rassoc$3$7 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$5 = lhsAggregate$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$7); | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet$5, msgToAggregate$5, false); | |
} | |
} | |
; | |
var rhsAggregate$macro$7 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14 = evidence$16; | |
} else { | |
var postRhsIndex$macro$5 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14 = evidence$16.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$16.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4 === evidence$16.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$8 = evidence$16; | |
} else { | |
var postLhsIndex$macro$18 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27 = evidence$16.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess && evidence$16.Lfastparse_ParsingRun__f_cut) { | |
var parse0$8 = evidence$16; | |
} else { | |
var preRhsIndex$macro$19 = evidence$16.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$16); | |
var rhsAggregate$macro$22 = evidence$16.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$16.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$16.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29 = evidence$16; | |
} else { | |
var postRhsIndex$macro$20 = evidence$16.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$16.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29 = evidence$16.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27, evidence$16.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28); | |
} | |
; | |
if (evidence$16.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$16.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$16.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$8 = res$macro$29; | |
} | |
} | |
; | |
if (!parse0$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$8; | |
} else { | |
var arg1 = parse0$8.Lfastparse_ParsingRun__f_successValue; | |
if (arg1 === null) { | |
throw new $c_s_MatchError(arg1); | |
} | |
; | |
var start2 = arg1.T3__f__1 | 0; | |
var node = arg1.T3__f__2; | |
var end$1 = arg1.T3__f__3 | 0; | |
parse0$8.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node, start2, end$1); | |
var x1$7 = parse0$8; | |
} | |
; | |
if (instrument$1) { | |
evidence$16.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$42 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$42); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$16.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("EscapeClass").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("EscapeClass").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("EscapeClass").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$49 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$49); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.UnicodeEscapeClass__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$17) { | |
var startIndex = evidence$17.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$17.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$17.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("UnicodeEscapeClass").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startIndex$1 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var instrument$1 = evidence$17.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$1) { | |
evidence$17.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, startIndex$1); | |
} | |
; | |
$m_Lfastparse_package$(); | |
var this$1 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$3 = this$1.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$17 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var input$macro$26 = evidence$17.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$2 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$5 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$2); | |
var preLhsIndex$macro$2 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var input$macro$11 = evidence$17.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$17); | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$3 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$6 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$9 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$3 > preLhsIndex$macro$2) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$12 = evidence$17.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess && evidence$17.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$4 = evidence$17.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var this$4 = $m_Lfastparse_Implicits$Sequencer$(); | |
this$4.UnitSequencer0__Lfastparse_Implicits$LowPriSequencer$UnitSequencer0$(); | |
var preLhsIndex$macro$81 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var input$macro$90 = evidence$17.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$5 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$4 = this$5.Lfastparse_Implicits$Sequencer$__f_BaseSequencer2; | |
var preLhsIndex$macro$66 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var input$macro$75 = evidence$17.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var this$6 = $m_Lfastparse_Implicits$Sequencer$(); | |
var x1$6 = $f_Lfastparse_LowestPriSequencer__Sequencer1__O(this$6); | |
var preLhsIndex$macro$36 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var input$macro$45 = evidence$17.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var oldCut = evidence$17.Lfastparse_ParsingRun__f_cut; | |
evidence$17.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$17.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$4 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var input$macro$13 = evidence$17.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index = evidence$17.Lfastparse_ParsingRun__f_index; | |
var end = 3 + index | 0; | |
var input = evidence$17.Lfastparse_ParsingRun__f_input; | |
if (input.isReachable__I__Z(-1 + end | 0)) { | |
var this$8 = input.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$8.charCodeAt(index) | 0)) === 92) { | |
var index$1 = 1 + index | 0; | |
var this$9 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x2 = (65535 & (this$9.charCodeAt(index$1) | 0)) === 112; | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
var index$2 = 2 + index | 0; | |
var this$10 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$10.charCodeAt(index$2) | 0)) === 123; | |
} else { | |
var $$x1 = false; | |
} | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$17.freshSuccessUnit__I__Lfastparse_ParsingRun(end); | |
} else { | |
evidence$17.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$17.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"\\\\p{"')); | |
} | |
; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$5 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$8 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$11 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$5 > preLhsIndex$macro$4) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess && evidence$17.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$6 = evidence$17.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(false, evidence$17); | |
var rhsAggregate$macro$9 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$10 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$16 = evidence$17; | |
} else { | |
var postRhsIndex$macro$7 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$12 = postRhsIndex$macro$7 > preRhsIndex$macro$6; | |
var nextIndex$macro$15 = !rhsMadeProgress$macro$12 && input$macro$13.isReachable__I__Z(postRhsIndex$macro$7) ? postLhsIndex$macro$5 : postRhsIndex$macro$7; | |
if (rhsMadeProgress$macro$12) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var v = !!evidence$17.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$16 = evidence$17.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$15); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$17.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$4, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$11, rhsMsg$macro$10), lhsAggregate$macro$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$9), preRhsIndex$macro$6 === evidence$17.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var lhsMsg = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$17.Lfastparse_ParsingRun__f_cut = !!(evidence$17.Lfastparse_ParsingRun__f_cut | oldCut); | |
} else if (evidence$17.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures = evidence$17.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$17.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures) { | |
evidence$17.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$17.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$21 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var input$macro$30 = evidence$17.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$2$1 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var end$2 = 3 + index$2$1 | 0; | |
var input$2 = evidence$17.Lfastparse_ParsingRun__f_input; | |
if (input$2.isReachable__I__Z(-1 + end$2 | 0)) { | |
var this$14 = input$2.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$14.charCodeAt(index$2$1) | 0)) === 92) { | |
var index$3 = 1 + index$2$1 | 0; | |
var this$15 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x4 = (65535 & (this$15.charCodeAt(index$3) | 0)) === 80; | |
} else { | |
var $$x4 = false; | |
} | |
; | |
if ($$x4) { | |
var index$4 = 2 + index$2$1 | 0; | |
var this$16 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x3 = (65535 & (this$16.charCodeAt(index$4) | 0)) === 123; | |
} else { | |
var $$x3 = false; | |
} | |
} else { | |
var $$x3 = false; | |
} | |
; | |
if ($$x3) { | |
evidence$17.freshSuccessUnit__I__Lfastparse_ParsingRun(end$2); | |
} else { | |
evidence$17.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$17.aggregateTerminal__I__F0__V(index$2$1, new $c_sjsr_AnonFunction0(() => '"\\\\P{"')); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$22 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$25 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$28 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$22 > preLhsIndex$macro$21) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$17.Lfastparse_ParsingRun__f_isSuccess && evidence$17.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$23 = evidence$17.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(true, evidence$17); | |
var rhsAggregate$macro$26 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$27 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$24 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$29 = postRhsIndex$macro$24 > preRhsIndex$macro$23; | |
var nextIndex$macro$32 = !rhsMadeProgress$macro$29 && input$macro$30.isReachable__I__Z(postRhsIndex$macro$24) ? postLhsIndex$macro$22 : postRhsIndex$macro$24; | |
if (rhsMadeProgress$macro$29) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var v$1 = !!evidence$17.Lfastparse_ParsingRun__f_successValue; | |
evidence$17.freshSuccess__O__I__Lfastparse_ParsingRun(v$1, nextIndex$macro$32); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$17.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$21, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$28, rhsMsg$macro$27), lhsAggregate$macro$25.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$26), preRhsIndex$macro$23 === evidence$17.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$17.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut); | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$17.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$17.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$17.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet, msgToAggregate, false); | |
} | |
} | |
; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$37 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$40 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$43 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
evidence$17.Lfastparse_ParsingRun__f_cut = true; | |
if (postLhsIndex$macro$37 > preLhsIndex$macro$36) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$46 = evidence$17.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess && evidence$17.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$38 = evidence$17.Lfastparse_ParsingRun__f_index; | |
this.UnicodePropertyName__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$17); | |
var rhsAggregate$macro$41 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$42 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$17.Lfastparse_ParsingRun__f_cut = true; | |
var res$macro$48 = evidence$17; | |
} else { | |
var postRhsIndex$macro$39 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$44 = postRhsIndex$macro$39 > preRhsIndex$macro$38; | |
var nextIndex$macro$47 = !rhsMadeProgress$macro$44 && input$macro$45.isReachable__I__Z(postRhsIndex$macro$39) ? postLhsIndex$macro$37 : postRhsIndex$macro$39; | |
if (rhsMadeProgress$macro$44) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var res$macro$48 = evidence$17.freshSuccess__O__I__Lfastparse_ParsingRun(x1$6.apply__O__O__O(!!lhsValue$macro$46, evidence$17.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$47); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$17.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$36, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$43, rhsMsg$macro$42), lhsAggregate$macro$40.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$41), preRhsIndex$macro$38 === evidence$17.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$67 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$70 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$73 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$67 > preLhsIndex$macro$66) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$76 = evidence$17.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess && evidence$17.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$68 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var this$20 = $m_Lfastparse_Implicits$Optioner$(); | |
this$20.GenericOptionerImplicit0__Lfastparse_Implicits$LowPriOptioner$GenericOptionerImplicit0$(); | |
var startPos$2 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var startCut = evidence$17.Lfastparse_ParsingRun__f_cut; | |
evidence$17.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$51 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var input$macro$60 = evidence$17.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var input$3 = evidence$17.Lfastparse_ParsingRun__f_input; | |
var index$3$1 = evidence$17.Lfastparse_ParsingRun__f_index; | |
if (input$3.isReachable__I__Z(index$3$1)) { | |
var this$22 = input$3.Lfastparse_IndexedParserInput__f_data; | |
var $$x5 = (65535 & (this$22.charCodeAt(index$3$1) | 0)) === 61; | |
} else { | |
var $$x5 = false; | |
} | |
; | |
if ($$x5) { | |
evidence$17.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$3$1 | 0); | |
} else { | |
evidence$17.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$17.aggregateTerminal__I__F0__V(index$3$1, new $c_sjsr_AnonFunction0(() => '"="')); | |
} | |
; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$52 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$55 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$58 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$52 > preLhsIndex$macro$51) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess && evidence$17.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$53 = evidence$17.Lfastparse_ParsingRun__f_index; | |
this.UnicodePropertyValue__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$17); | |
var rhsAggregate$macro$56 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$57 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$63 = evidence$17; | |
} else { | |
var postRhsIndex$macro$54 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$59 = postRhsIndex$macro$54 > preRhsIndex$macro$53; | |
var nextIndex$macro$62 = !rhsMadeProgress$macro$59 && input$macro$60.isReachable__I__Z(postRhsIndex$macro$54) ? postLhsIndex$macro$52 : postRhsIndex$macro$54; | |
if (rhsMadeProgress$macro$59) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var v$2 = evidence$17.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$63 = evidence$17.freshSuccess__O__I__Lfastparse_ParsingRun(v$2, nextIndex$macro$62); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$17.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$51, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$58, rhsMsg$macro$57), lhsAggregate$macro$55.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$56), preRhsIndex$macro$53 === evidence$17.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var postSuccess = evidence$17.Lfastparse_ParsingRun__f_isSuccess; | |
if (postSuccess) { | |
var value = evidence$17.Lfastparse_ParsingRun__f_successValue; | |
var res$4 = evidence$17.freshSuccess__O__Lfastparse_ParsingRun(new $c_s_Some(value)); | |
res$4.Lfastparse_ParsingRun__f_cut = !!(res$4.Lfastparse_ParsingRun__f_cut | startCut); | |
} else if (evidence$17.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var res$5 = evidence$17.freshSuccess__O__I__Lfastparse_ParsingRun($m_s_None$(), startPos$2); | |
res$5.Lfastparse_ParsingRun__f_cut = !!(res$5.Lfastparse_ParsingRun__f_cut | startCut); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
var msg = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
var agg = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (!postSuccess) { | |
evidence$17.aggregateMsg__I__F0__Lfastparse_internal_Msgs__V(startPos$2, new $c_sjsr_AnonFunction0(((msg$1) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$1.Lfastparse_internal_Msgs__f_value) + ".?")(msg)), agg); | |
} | |
} | |
; | |
var rhsAggregate$macro$71 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$72 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$78 = evidence$17; | |
} else { | |
var postRhsIndex$macro$69 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$74 = postRhsIndex$macro$69 > preRhsIndex$macro$68; | |
var nextIndex$macro$77 = !rhsMadeProgress$macro$74 && input$macro$75.isReachable__I__Z(postRhsIndex$macro$69) ? postLhsIndex$macro$67 : postRhsIndex$macro$69; | |
if (rhsMadeProgress$macro$74) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var res$macro$78 = evidence$17.freshSuccess__O__I__Lfastparse_ParsingRun(x1$4.apply__O__O__O(lhsValue$macro$76, evidence$17.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$77); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$17.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$66, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$73, rhsMsg$macro$72), lhsAggregate$macro$70.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$71), preRhsIndex$macro$68 === evidence$17.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$6 = evidence$17; | |
} else { | |
var postLhsIndex$macro$82 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$85 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$88 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
evidence$17.Lfastparse_ParsingRun__f_cut = true; | |
if (postLhsIndex$macro$82 > preLhsIndex$macro$81) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$91 = evidence$17.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess && evidence$17.Lfastparse_ParsingRun__f_cut) { | |
var parse0$6 = evidence$17; | |
} else { | |
var preRhsIndex$macro$83 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var input$4 = evidence$17.Lfastparse_ParsingRun__f_input; | |
var index$4$1 = evidence$17.Lfastparse_ParsingRun__f_index; | |
if (input$4.isReachable__I__Z(index$4$1)) { | |
var this$26 = input$4.Lfastparse_IndexedParserInput__f_data; | |
var $$x6 = (65535 & (this$26.charCodeAt(index$4$1) | 0)) === 125; | |
} else { | |
var $$x6 = false; | |
} | |
; | |
if ($$x6) { | |
evidence$17.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$4$1 | 0); | |
} else { | |
evidence$17.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$17.aggregateTerminal__I__F0__V(index$4$1, new $c_sjsr_AnonFunction0(() => '"}"')); | |
} | |
; | |
var rhsAggregate$macro$86 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$87 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$17.Lfastparse_ParsingRun__f_cut = true; | |
var res$macro$93 = evidence$17; | |
} else { | |
var postRhsIndex$macro$84 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$89 = postRhsIndex$macro$84 > preRhsIndex$macro$83; | |
var nextIndex$macro$92 = !rhsMadeProgress$macro$89 && input$macro$90.isReachable__I__Z(postRhsIndex$macro$84) ? postLhsIndex$macro$82 : postRhsIndex$macro$84; | |
if (rhsMadeProgress$macro$89) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var t = lhsValue$macro$91; | |
var res$macro$93 = evidence$17.freshSuccess__O__I__Lfastparse_ParsingRun(t, nextIndex$macro$92); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$17.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$81, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$88, rhsMsg$macro$87), lhsAggregate$macro$85.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$86), preRhsIndex$macro$83 === evidence$17.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$6 = res$macro$93; | |
} | |
} | |
; | |
if (parse0$6.Lfastparse_ParsingRun__f_isSuccess) { | |
var arg1 = parse0$6.Lfastparse_ParsingRun__f_successValue; | |
matchEnd7: { | |
var $$x7; | |
if (arg1 !== null) { | |
var invert = !!arg1.T3__f__1; | |
var p = arg1.T3__f__2; | |
var p2 = arg1.T3__f__3; | |
var x = $m_s_None$(); | |
if (x === p2) { | |
var $$x7 = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$UnicodeProperty(invert, p, null); | |
break matchEnd7; | |
} | |
} | |
; | |
if (arg1 !== null) { | |
var invert$2 = !!arg1.T3__f__1; | |
var p$2 = arg1.T3__f__2; | |
var p4 = arg1.T3__f__3; | |
if (p4 instanceof $c_s_Some) { | |
var x5 = p4; | |
var v$3 = x5.s_Some__f_value; | |
var $$x7 = new $c_Lcodes_quine_labs_recheck_regexp_Pattern$UnicodePropertyValue(invert$2, p$2, v$3, null); | |
break matchEnd7; | |
} | |
} | |
; | |
throw new $c_s_MatchError(arg1); | |
} | |
; | |
parse0$6.Lfastparse_ParsingRun__f_successValue = $$x7; | |
} | |
; | |
var rhsAggregate$macro$7 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$8 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$14 = evidence$17; | |
} else { | |
var postRhsIndex$macro$5 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$10 = postRhsIndex$macro$5 > preRhsIndex$macro$4; | |
var nextIndex$macro$13 = !rhsMadeProgress$macro$10 && input$macro$11.isReachable__I__Z(postRhsIndex$macro$5) ? postLhsIndex$macro$3 : postRhsIndex$macro$5; | |
if (rhsMadeProgress$macro$10) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var res$macro$14 = evidence$17.freshSuccess__O__I__Lfastparse_ParsingRun(x1$5.apply__O__O__O(lhsValue$macro$12 | 0, evidence$17.Lfastparse_ParsingRun__f_successValue), nextIndex$macro$13); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$17.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$2, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$9, rhsMsg$macro$8), lhsAggregate$macro$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$7), preRhsIndex$macro$4 === evidence$17.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$8 = evidence$17; | |
} else { | |
var postLhsIndex$macro$18 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$21 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$24 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$18 > preLhsIndex$macro$17) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$27 = evidence$17.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess && evidence$17.Lfastparse_ParsingRun__f_cut) { | |
var parse0$8 = evidence$17; | |
} else { | |
var preRhsIndex$macro$19 = evidence$17.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Index__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$17); | |
var rhsAggregate$macro$22 = evidence$17.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$23 = evidence$17.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$17.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$29 = evidence$17; | |
} else { | |
var postRhsIndex$macro$20 = evidence$17.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$25 = postRhsIndex$macro$20 > preRhsIndex$macro$19; | |
var nextIndex$macro$28 = !rhsMadeProgress$macro$25 && input$macro$26.isReachable__I__Z(postRhsIndex$macro$20) ? postLhsIndex$macro$18 : postRhsIndex$macro$20; | |
if (rhsMadeProgress$macro$25) { | |
evidence$17.checkForDrop__Z(); | |
} | |
; | |
var res$macro$29 = evidence$17.freshSuccess__O__I__Lfastparse_ParsingRun(x1$3.apply__O__O__O(lhsValue$macro$27, evidence$17.Lfastparse_ParsingRun__f_successValue | 0), nextIndex$macro$28); | |
} | |
; | |
if (evidence$17.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$17.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$17, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$24, rhsMsg$macro$23), lhsAggregate$macro$21.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$22), preRhsIndex$macro$19 === evidence$17.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var parse0$8 = res$macro$29; | |
} | |
} | |
; | |
if (!parse0$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = parse0$8; | |
} else { | |
var arg1$1 = parse0$8.Lfastparse_ParsingRun__f_successValue; | |
if (arg1$1 === null) { | |
throw new $c_s_MatchError(arg1$1); | |
} | |
; | |
var start2 = arg1$1.T3__f__1 | 0; | |
var node = arg1$1.T3__f__2; | |
var end$1 = arg1$1.T3__f__3 | 0; | |
parse0$8.Lfastparse_ParsingRun__f_successValue = $f_Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation__withLoc__I__I__Lcodes_quine_labs_recheck_regexp_Pattern$HasLocation(node, start2, end$1); | |
var x1$7 = parse0$8; | |
} | |
; | |
if (instrument$1) { | |
evidence$17.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex$1, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex$1 < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("WithLoc").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex$1); | |
var this$36 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$36); | |
} | |
} | |
; | |
if (instrument) { | |
evidence$17.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("UnicodeEscapeClass").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array$1 = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("UnicodeEscapeClass").Lsourcecode_Name__f_value))]; | |
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self$1 = new $c_Lsourcecode_Name("UnicodeEscapeClass").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self$1, startIndex); | |
var this$43 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$43); | |
} | |
} | |
; | |
return x1$7; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.UnicodePropertyName__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$18) { | |
var startIndex = evidence$18.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$18.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$18.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("UnicodePropertyName").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startPos = evidence$18.Lfastparse_ParsingRun__f_index; | |
var oldCapturing = evidence$18.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$18.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
$m_Lfastparse_package$(); | |
var x1$4 = new $c_sjsr_AnonFunction1(((this$1) => (c$2) => { | |
var c = $uC(c$2); | |
return $p_Lcodes_quine_labs_recheck_regexp_Parser__isUnicodeProperty__C__Z(this$1, c); | |
})(this)); | |
var index = evidence$18.Lfastparse_ParsingRun__f_index; | |
var input = evidence$18.Lfastparse_ParsingRun__f_input; | |
var start2 = index; | |
var goal = 1 + start2 | 0; | |
while (true) { | |
if (input.isReachable__I__Z(index)) { | |
var index$1 = index; | |
var this$2 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = !!x1$4.apply__O__O($bC(65535 & (this$2.charCodeAt(index$1) | 0))); | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
index = 1 + index | 0; | |
} else { | |
break; | |
} | |
} | |
; | |
if (index >= goal) { | |
evidence$18.freshSuccessUnit__I__Lfastparse_ParsingRun(index); | |
} else { | |
evidence$18.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$18.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$18.aggregateTerminal__I__F0__V(start2, new $c_sjsr_AnonFunction0(((x1$4$1) => () => "chars-while(" + x1$4$1 + ", 1)")(x1$4))); | |
} | |
; | |
evidence$18.Lfastparse_ParsingRun__f_noDropBuffer = oldCapturing; | |
var x1$5 = !evidence$18.Lfastparse_ParsingRun__f_isSuccess ? evidence$18 : evidence$18.freshSuccess__O__Lfastparse_ParsingRun(evidence$18.Lfastparse_ParsingRun__f_input.slice__I__I__T(startPos, evidence$18.Lfastparse_ParsingRun__f_index)); | |
if (instrument) { | |
evidence$18.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("UnicodePropertyName").Lsourcecode_Name__f_value, x1$5.Lfastparse_ParsingRun__f_index, x1$5.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("UnicodePropertyName").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$5.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$5.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("UnicodePropertyName").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self, startIndex); | |
var this$10 = x1$5.Lfastparse_ParsingRun__f_failureStack; | |
x1$5.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$10); | |
} | |
} | |
; | |
return x1$5; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.UnicodePropertyValue__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$19) { | |
var startIndex = evidence$19.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$19.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$19.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("UnicodePropertyValue").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var startPos = evidence$19.Lfastparse_ParsingRun__f_index; | |
var oldCapturing = evidence$19.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$19.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
$m_Lfastparse_package$(); | |
var x1$4 = new $c_sjsr_AnonFunction1(((this$1) => (c$2) => { | |
var c = $uC(c$2); | |
return $p_Lcodes_quine_labs_recheck_regexp_Parser__isUnicodePropertyValue__C__Z(this$1, c); | |
})(this)); | |
var index = evidence$19.Lfastparse_ParsingRun__f_index; | |
var input = evidence$19.Lfastparse_ParsingRun__f_input; | |
var start2 = index; | |
var goal = 1 + start2 | 0; | |
while (true) { | |
if (input.isReachable__I__Z(index)) { | |
var index$1 = index; | |
var this$2 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = !!x1$4.apply__O__O($bC(65535 & (this$2.charCodeAt(index$1) | 0))); | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
index = 1 + index | 0; | |
} else { | |
break; | |
} | |
} | |
; | |
if (index >= goal) { | |
evidence$19.freshSuccessUnit__I__Lfastparse_ParsingRun(index); | |
} else { | |
evidence$19.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$19.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$19.aggregateTerminal__I__F0__V(start2, new $c_sjsr_AnonFunction0(((x1$4$1) => () => "chars-while(" + x1$4$1 + ", 1)")(x1$4))); | |
} | |
; | |
evidence$19.Lfastparse_ParsingRun__f_noDropBuffer = oldCapturing; | |
var x1$5 = !evidence$19.Lfastparse_ParsingRun__f_isSuccess ? evidence$19 : evidence$19.freshSuccess__O__Lfastparse_ParsingRun(evidence$19.Lfastparse_ParsingRun__f_input.slice__I__I__T(startPos, evidence$19.Lfastparse_ParsingRun__f_index)); | |
if (instrument) { | |
evidence$19.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("UnicodePropertyValue").Lsourcecode_Name__f_value, x1$5.Lfastparse_ParsingRun__f_index, x1$5.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$5.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("UnicodePropertyValue").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$5.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$5.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$5.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$5.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("UnicodePropertyValue").Lsourcecode_Name__f_value; | |
var rassoc$1 = $ct_T2__O__O__(new $c_T2(), self, startIndex); | |
var this$10 = x1$5.Lfastparse_ParsingRun__f_failureStack; | |
x1$5.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1, this$10); | |
} | |
} | |
; | |
return x1$5; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.EscapeCharacter__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$20) { | |
var startIndex = evidence$20.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$20.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$20.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("EscapeCharacter").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
var oldCut = evidence$20.Lfastparse_ParsingRun__f_cut; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
var startPos = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$2 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$2 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$3 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$3 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$4 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$4 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$5 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$5 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$6 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$6 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$7 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$7 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$8 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$8 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$9 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$9 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var oldCut$10 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$10 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
this.UnicodeEscape__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$20); | |
var lhsMsg = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$20.Lfastparse_ParsingRun__f_cut = !!(evidence$20.Lfastparse_ParsingRun__f_cut | oldCut$10); | |
} else if (evidence$20.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures = evidence$20.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$20.Lfastparse_ParsingRun__f_index = startPos$10; | |
if (verboseFailures) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$10, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$4 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var input$macro$13 = evidence$20.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index = evidence$20.Lfastparse_ParsingRun__f_index; | |
var end = 2 + index | 0; | |
var input = evidence$20.Lfastparse_ParsingRun__f_input; | |
if (input.isReachable__I__Z(-1 + end | 0)) { | |
var this$3 = input.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$3.charCodeAt(index) | 0)) === 92) { | |
var index$1 = 1 + index | 0; | |
var this$4 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$4.charCodeAt(index$1) | 0)) === 116; | |
} else { | |
var $$x1 = false; | |
} | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$20.freshSuccessUnit__I__Lfastparse_ParsingRun(end); | |
} else { | |
evidence$20.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"\\\\t"')); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$5 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$8 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$11 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$5 > preLhsIndex$macro$4) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$20.Lfastparse_ParsingRun__f_isSuccess && evidence$20.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$6 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_unicode_UChar(9), evidence$20); | |
var rhsAggregate$macro$9 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$10 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$7 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$12 = postRhsIndex$macro$7 > preRhsIndex$macro$6; | |
var nextIndex$macro$15 = !rhsMadeProgress$macro$12 && input$macro$13.isReachable__I__Z(postRhsIndex$macro$7) ? postLhsIndex$macro$5 : postRhsIndex$macro$7; | |
if (rhsMadeProgress$macro$12) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
var v = evidence$20.Lfastparse_ParsingRun__f_successValue; | |
evidence$20.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$15); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$4, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$11, rhsMsg$macro$10), lhsAggregate$macro$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$9), preRhsIndex$macro$6 === evidence$20.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(rhsCut | oldCut$10); | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess && !rhsCut) { | |
evidence$20.freshFailure__I__Lfastparse_ParsingRun(startPos$10); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = endCut; | |
if (verboseFailures) { | |
var msgToSet = lhsMsg.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg); | |
var rassoc$3 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate = lhsAggregate.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3); | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$10, msgToSet, msgToAggregate, false); | |
} | |
} | |
; | |
var lhsMsg$2 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$2 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$20.Lfastparse_ParsingRun__f_cut = !!(evidence$20.Lfastparse_ParsingRun__f_cut | oldCut$9); | |
} else if (evidence$20.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$2 = evidence$20.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$20.Lfastparse_ParsingRun__f_index = startPos$9; | |
if (verboseFailures$2) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$9, lhsMsg$2, lhsAggregate$2, false); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$21 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var input$macro$30 = evidence$20.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$2 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var end$2 = 2 + index$2 | 0; | |
var input$2 = evidence$20.Lfastparse_ParsingRun__f_input; | |
if (input$2.isReachable__I__Z(-1 + end$2 | 0)) { | |
var this$8 = input$2.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$8.charCodeAt(index$2) | 0)) === 92) { | |
var index$3 = 1 + index$2 | 0; | |
var this$9 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x2 = (65535 & (this$9.charCodeAt(index$3) | 0)) === 110; | |
} else { | |
var $$x2 = false; | |
} | |
} else { | |
var $$x2 = false; | |
} | |
; | |
if ($$x2) { | |
evidence$20.freshSuccessUnit__I__Lfastparse_ParsingRun(end$2); | |
} else { | |
evidence$20.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateTerminal__I__F0__V(index$2, new $c_sjsr_AnonFunction0(() => '"\\\\n"')); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$22 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$25 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$28 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$22 > preLhsIndex$macro$21) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$20.Lfastparse_ParsingRun__f_isSuccess && evidence$20.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$23 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_unicode_UChar(10), evidence$20); | |
var rhsAggregate$macro$26 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$27 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$24 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$29 = postRhsIndex$macro$24 > preRhsIndex$macro$23; | |
var nextIndex$macro$32 = !rhsMadeProgress$macro$29 && input$macro$30.isReachable__I__Z(postRhsIndex$macro$24) ? postLhsIndex$macro$22 : postRhsIndex$macro$24; | |
if (rhsMadeProgress$macro$29) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
var v$1 = evidence$20.Lfastparse_ParsingRun__f_successValue; | |
evidence$20.freshSuccess__O__I__Lfastparse_ParsingRun(v$1, nextIndex$macro$32); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$21, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$28, rhsMsg$macro$27), lhsAggregate$macro$25.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$26), preRhsIndex$macro$23 === evidence$20.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$2 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$2 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var endCut$2 = !!(rhsCut$2 | oldCut$9); | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$2) { | |
evidence$20.freshFailure__I__Lfastparse_ParsingRun(startPos$9); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = endCut$2; | |
if (verboseFailures$2) { | |
var msgToSet$1 = lhsMsg$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$2); | |
var rassoc$3$2 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$1 = lhsAggregate$2.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$2); | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$9, msgToSet$1, msgToAggregate$1, false); | |
} | |
} | |
; | |
var lhsMsg$3 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$3 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$20.Lfastparse_ParsingRun__f_cut = !!(evidence$20.Lfastparse_ParsingRun__f_cut | oldCut$8); | |
} else if (evidence$20.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$3 = evidence$20.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$20.Lfastparse_ParsingRun__f_index = startPos$8; | |
if (verboseFailures$3) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$8, lhsMsg$3, lhsAggregate$3, false); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$38 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var input$macro$47 = evidence$20.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$3$1 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var end$3 = 2 + index$3$1 | 0; | |
var input$3 = evidence$20.Lfastparse_ParsingRun__f_input; | |
if (input$3.isReachable__I__Z(-1 + end$3 | 0)) { | |
var this$13 = input$3.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$13.charCodeAt(index$3$1) | 0)) === 92) { | |
var index$4 = 1 + index$3$1 | 0; | |
var this$14 = input$3.Lfastparse_IndexedParserInput__f_data; | |
var $$x3 = (65535 & (this$14.charCodeAt(index$4) | 0)) === 118; | |
} else { | |
var $$x3 = false; | |
} | |
} else { | |
var $$x3 = false; | |
} | |
; | |
if ($$x3) { | |
evidence$20.freshSuccessUnit__I__Lfastparse_ParsingRun(end$3); | |
} else { | |
evidence$20.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateTerminal__I__F0__V(index$3$1, new $c_sjsr_AnonFunction0(() => '"\\\\v"')); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$39 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$42 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$45 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$39 > preLhsIndex$macro$38) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$20.Lfastparse_ParsingRun__f_isSuccess && evidence$20.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$40 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_unicode_UChar(11), evidence$20); | |
var rhsAggregate$macro$43 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$44 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$41 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$46 = postRhsIndex$macro$41 > preRhsIndex$macro$40; | |
var nextIndex$macro$49 = !rhsMadeProgress$macro$46 && input$macro$47.isReachable__I__Z(postRhsIndex$macro$41) ? postLhsIndex$macro$39 : postRhsIndex$macro$41; | |
if (rhsMadeProgress$macro$46) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
var v$2 = evidence$20.Lfastparse_ParsingRun__f_successValue; | |
evidence$20.freshSuccess__O__I__Lfastparse_ParsingRun(v$2, nextIndex$macro$49); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$38, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$45, rhsMsg$macro$44), lhsAggregate$macro$42.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$43), preRhsIndex$macro$40 === evidence$20.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$3 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$3 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var endCut$3 = !!(rhsCut$3 | oldCut$8); | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$3) { | |
evidence$20.freshFailure__I__Lfastparse_ParsingRun(startPos$8); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = endCut$3; | |
if (verboseFailures$3) { | |
var msgToSet$2 = lhsMsg$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$3); | |
var rassoc$3$4 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$2 = lhsAggregate$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$4); | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$8, msgToSet$2, msgToAggregate$2, false); | |
} | |
} | |
; | |
var lhsMsg$4 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$4 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$20.Lfastparse_ParsingRun__f_cut = !!(evidence$20.Lfastparse_ParsingRun__f_cut | oldCut$7); | |
} else if (evidence$20.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$4 = evidence$20.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$20.Lfastparse_ParsingRun__f_index = startPos$7; | |
if (verboseFailures$4) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$7, lhsMsg$4, lhsAggregate$4, false); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$55 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var input$macro$64 = evidence$20.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$4$1 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var end$4 = 2 + index$4$1 | 0; | |
var input$4 = evidence$20.Lfastparse_ParsingRun__f_input; | |
if (input$4.isReachable__I__Z(-1 + end$4 | 0)) { | |
var this$18 = input$4.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$18.charCodeAt(index$4$1) | 0)) === 92) { | |
var index$5 = 1 + index$4$1 | 0; | |
var this$19 = input$4.Lfastparse_IndexedParserInput__f_data; | |
var $$x4 = (65535 & (this$19.charCodeAt(index$5) | 0)) === 102; | |
} else { | |
var $$x4 = false; | |
} | |
} else { | |
var $$x4 = false; | |
} | |
; | |
if ($$x4) { | |
evidence$20.freshSuccessUnit__I__Lfastparse_ParsingRun(end$4); | |
} else { | |
evidence$20.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateTerminal__I__F0__V(index$4$1, new $c_sjsr_AnonFunction0(() => '"\\\\f"')); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$56 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$59 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$62 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$56 > preLhsIndex$macro$55) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$20.Lfastparse_ParsingRun__f_isSuccess && evidence$20.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$57 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_unicode_UChar(12), evidence$20); | |
var rhsAggregate$macro$60 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$61 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$58 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$63 = postRhsIndex$macro$58 > preRhsIndex$macro$57; | |
var nextIndex$macro$66 = !rhsMadeProgress$macro$63 && input$macro$64.isReachable__I__Z(postRhsIndex$macro$58) ? postLhsIndex$macro$56 : postRhsIndex$macro$58; | |
if (rhsMadeProgress$macro$63) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
var v$3 = evidence$20.Lfastparse_ParsingRun__f_successValue; | |
evidence$20.freshSuccess__O__I__Lfastparse_ParsingRun(v$3, nextIndex$macro$66); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$55, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$62, rhsMsg$macro$61), lhsAggregate$macro$59.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$60), preRhsIndex$macro$57 === evidence$20.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$4 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$4 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var endCut$4 = !!(rhsCut$4 | oldCut$7); | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$4) { | |
evidence$20.freshFailure__I__Lfastparse_ParsingRun(startPos$7); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = endCut$4; | |
if (verboseFailures$4) { | |
var msgToSet$3 = lhsMsg$4.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$4); | |
var rassoc$3$5 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$3 = lhsAggregate$4.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$5); | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$7, msgToSet$3, msgToAggregate$3, false); | |
} | |
} | |
; | |
var lhsMsg$5 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$5 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$20.Lfastparse_ParsingRun__f_cut = !!(evidence$20.Lfastparse_ParsingRun__f_cut | oldCut$6); | |
} else if (evidence$20.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$5 = evidence$20.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$20.Lfastparse_ParsingRun__f_index = startPos$6; | |
if (verboseFailures$5) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$6, lhsMsg$5, lhsAggregate$5, false); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$72 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var input$macro$81 = evidence$20.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$5$1 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var end$5 = 2 + index$5$1 | 0; | |
var input$5 = evidence$20.Lfastparse_ParsingRun__f_input; | |
if (input$5.isReachable__I__Z(-1 + end$5 | 0)) { | |
var this$23 = input$5.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$23.charCodeAt(index$5$1) | 0)) === 92) { | |
var index$6 = 1 + index$5$1 | 0; | |
var this$24 = input$5.Lfastparse_IndexedParserInput__f_data; | |
var $$x5 = (65535 & (this$24.charCodeAt(index$6) | 0)) === 114; | |
} else { | |
var $$x5 = false; | |
} | |
} else { | |
var $$x5 = false; | |
} | |
; | |
if ($$x5) { | |
evidence$20.freshSuccessUnit__I__Lfastparse_ParsingRun(end$5); | |
} else { | |
evidence$20.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateTerminal__I__F0__V(index$5$1, new $c_sjsr_AnonFunction0(() => '"\\\\r"')); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$73 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$76 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$79 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$73 > preLhsIndex$macro$72) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$20.Lfastparse_ParsingRun__f_isSuccess && evidence$20.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$74 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_unicode_UChar(13), evidence$20); | |
var rhsAggregate$macro$77 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$78 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$75 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$80 = postRhsIndex$macro$75 > preRhsIndex$macro$74; | |
var nextIndex$macro$83 = !rhsMadeProgress$macro$80 && input$macro$81.isReachable__I__Z(postRhsIndex$macro$75) ? postLhsIndex$macro$73 : postRhsIndex$macro$75; | |
if (rhsMadeProgress$macro$80) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
var v$4 = evidence$20.Lfastparse_ParsingRun__f_successValue; | |
evidence$20.freshSuccess__O__I__Lfastparse_ParsingRun(v$4, nextIndex$macro$83); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$72, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$79, rhsMsg$macro$78), lhsAggregate$macro$76.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$77), preRhsIndex$macro$74 === evidence$20.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$5 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$5 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var endCut$5 = !!(rhsCut$5 | oldCut$6); | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$5) { | |
evidence$20.freshFailure__I__Lfastparse_ParsingRun(startPos$6); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = endCut$5; | |
if (verboseFailures$5) { | |
var msgToSet$4 = lhsMsg$5.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$5); | |
var rassoc$3$6 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$4 = lhsAggregate$5.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$6); | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$6, msgToSet$4, msgToAggregate$4, false); | |
} | |
} | |
; | |
var lhsMsg$6 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$6 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$20.Lfastparse_ParsingRun__f_cut = !!(evidence$20.Lfastparse_ParsingRun__f_cut | oldCut$5); | |
} else if (evidence$20.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$6 = evidence$20.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$20.Lfastparse_ParsingRun__f_index = startPos$5; | |
if (verboseFailures$6) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$5, lhsMsg$6, lhsAggregate$6, false); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$89 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var input$macro$98 = evidence$20.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$6$1 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var end$6 = 2 + index$6$1 | 0; | |
var input$6 = evidence$20.Lfastparse_ParsingRun__f_input; | |
if (input$6.isReachable__I__Z(-1 + end$6 | 0)) { | |
var this$28 = input$6.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$28.charCodeAt(index$6$1) | 0)) === 92) { | |
var index$7 = 1 + index$6$1 | 0; | |
var this$29 = input$6.Lfastparse_IndexedParserInput__f_data; | |
var $$x6 = (65535 & (this$29.charCodeAt(index$7) | 0)) === 99; | |
} else { | |
var $$x6 = false; | |
} | |
} else { | |
var $$x6 = false; | |
} | |
; | |
if ($$x6) { | |
evidence$20.freshSuccessUnit__I__Lfastparse_ParsingRun(end$6); | |
} else { | |
evidence$20.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateTerminal__I__F0__V(index$6$1, new $c_sjsr_AnonFunction0(() => '"\\\\c"')); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$90 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$93 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$96 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$90 > preLhsIndex$macro$89) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$20.Lfastparse_ParsingRun__f_isSuccess && evidence$20.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$91 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var startPos$11 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var oldCapturing = evidence$20.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$20.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
$m_Lfastparse_package$(); | |
var x1$32 = new $c_sjsr_AnonFunction1(((this$13$1) => (c$2) => { | |
var c = $uC(c$2); | |
return $p_Lcodes_quine_labs_recheck_regexp_Parser__isControl__C__Z(this$13$1, c); | |
})(this)); | |
var startIndex$2 = evidence$20.Lfastparse_ParsingRun__f_index; | |
if (evidence$20.Lfastparse_ParsingRun__f_input.isReachable__I__Z(evidence$20.Lfastparse_ParsingRun__f_index)) { | |
var this$31 = evidence$20.Lfastparse_ParsingRun__f_input; | |
var index$8 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var this$32 = this$31.Lfastparse_IndexedParserInput__f_data; | |
var $$x7 = !!x1$32.apply__O__O($bC(65535 & (this$32.charCodeAt(index$8) | 0))); | |
} else { | |
var $$x7 = false; | |
} | |
; | |
if (!$$x7) { | |
evidence$20.freshFailure__Lfastparse_ParsingRun(); | |
} else { | |
evidence$20.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + evidence$20.Lfastparse_ParsingRun__f_index | 0); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateTerminal__I__F0__V(startIndex$2, new $c_sjsr_AnonFunction0(((x1$32$1) => () => "char-pred(" + x1$32$1 + ")")(x1$32))); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_noDropBuffer = oldCapturing; | |
var parse0$6 = !evidence$20.Lfastparse_ParsingRun__f_isSuccess ? evidence$20 : evidence$20.freshSuccess__O__Lfastparse_ParsingRun(evidence$20.Lfastparse_ParsingRun__f_input.slice__I__I__T(startPos$11, evidence$20.Lfastparse_ParsingRun__f_index)); | |
if (parse0$6.Lfastparse_ParsingRun__f_isSuccess) { | |
var arg1 = parse0$6.Lfastparse_ParsingRun__f_successValue; | |
parse0$6.Lfastparse_ParsingRun__f_successValue = new $c_Lcodes_quine_labs_recheck_unicode_UChar((65535 & (arg1.charCodeAt(0) | 0)) % 32 | 0); | |
} | |
; | |
var rhsAggregate$macro$94 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$95 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$92 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$97 = postRhsIndex$macro$92 > preRhsIndex$macro$91; | |
var nextIndex$macro$100 = !rhsMadeProgress$macro$97 && input$macro$98.isReachable__I__Z(postRhsIndex$macro$92) ? postLhsIndex$macro$90 : postRhsIndex$macro$92; | |
if (rhsMadeProgress$macro$97) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
var v$5 = evidence$20.Lfastparse_ParsingRun__f_successValue; | |
evidence$20.freshSuccess__O__I__Lfastparse_ParsingRun(v$5, nextIndex$macro$100); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$89, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$96, rhsMsg$macro$95), lhsAggregate$macro$93.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$94), preRhsIndex$macro$91 === evidence$20.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$6 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$6 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var endCut$6 = !!(rhsCut$6 | oldCut$5); | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$6) { | |
evidence$20.freshFailure__I__Lfastparse_ParsingRun(startPos$5); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = endCut$6; | |
if (verboseFailures$6) { | |
var msgToSet$5 = lhsMsg$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$6); | |
var rassoc$3$7 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$5 = lhsAggregate$6.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$7); | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$5, msgToSet$5, msgToAggregate$5, false); | |
} | |
} | |
; | |
var lhsMsg$7 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$7 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$20.Lfastparse_ParsingRun__f_cut = !!(evidence$20.Lfastparse_ParsingRun__f_cut | oldCut$4); | |
} else if (evidence$20.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$7 = evidence$20.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$20.Lfastparse_ParsingRun__f_index = startPos$4; | |
if (verboseFailures$7) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$4, lhsMsg$7, lhsAggregate$7, false); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$106 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var input$macro$115 = evidence$20.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$7$1 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var end$7 = 2 + index$7$1 | 0; | |
var input$7 = evidence$20.Lfastparse_ParsingRun__f_input; | |
if (input$7.isReachable__I__Z(-1 + end$7 | 0)) { | |
var this$37 = input$7.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$37.charCodeAt(index$7$1) | 0)) === 92) { | |
var index$9 = 1 + index$7$1 | 0; | |
var this$38 = input$7.Lfastparse_IndexedParserInput__f_data; | |
var $$x8 = (65535 & (this$38.charCodeAt(index$9) | 0)) === 120; | |
} else { | |
var $$x8 = false; | |
} | |
} else { | |
var $$x8 = false; | |
} | |
; | |
if ($$x8) { | |
evidence$20.freshSuccessUnit__I__Lfastparse_ParsingRun(end$7); | |
} else { | |
evidence$20.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateTerminal__I__F0__V(index$7$1, new $c_sjsr_AnonFunction0(() => '"\\\\x"')); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$107 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$110 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$113 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$107 > preLhsIndex$macro$106) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$20.Lfastparse_ParsingRun__f_isSuccess && evidence$20.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$108 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var startPos$12 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var oldCapturing$2 = evidence$20.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$20.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var repeater = $m_Lfastparse_Implicits$Repeater$UnitRepeater$(); | |
var whitespace = $m_Lfastparse_NoWhitespace$noWhitespaceImplicit$(); | |
var this$42 = $m_Lfastparse_internal_RepImpls$(); | |
var startIndex$1 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var count = 0; | |
var precut = false; | |
var outerCut = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var sepMsg = null; | |
var lastAgg = null; | |
while (true) { | |
evidence$20.Lfastparse_ParsingRun__f_cut = !!(precut | (count < 0 && outerCut)); | |
this.HexDigit__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$20); | |
var parsedMsg = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var parsedAgg = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var postCut = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var verboseFailures$1 = evidence$20.Lfastparse_ParsingRun__f_verboseFailures; | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$1 = postCut ? evidence$20 : $p_Lfastparse_internal_RepImpls$__end$3__I__I__I__Z__I__Lfastparse_ParsingRun__Lfastparse_Implicits$Repeater__O__Lfastparse_ParsingRun(this$42, startIndex$1, startIndex$1, count, !!(outerCut | postCut), 2, evidence$20, repeater, void 0); | |
if (verboseFailures$1) { | |
var startIndex$3 = startIndex$1; | |
var sepMsg$1 = sepMsg; | |
var lastAgg$1 = lastAgg; | |
var precut$1 = precut; | |
if (sepMsg$1 === null || precut$1) { | |
evidence$20.aggregateMsg__I__F0__Lfastparse_internal_Msgs__V(startIndex$3, new $c_sjsr_AnonFunction0(((parsedMsg$1, min) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$1.Lfastparse_internal_Msgs__f_value) + (".rep(" + min) + ")")(parsedMsg, 0)), evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate); | |
} else { | |
var $$x10 = new $c_sjsr_AnonFunction0(((parsedMsg$2, min$1) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$2.Lfastparse_internal_Msgs__f_value) + (".rep(" + min$1) + ")")(parsedMsg, 0)); | |
if (lastAgg$1 === null) { | |
var $$x9 = $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(sepMsg$1, parsedMsg); | |
} else { | |
var rassoc$2 = $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(sepMsg$1, parsedMsg); | |
var $$x9 = lastAgg$1.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$2); | |
} | |
; | |
evidence$20.aggregateMsg__I__F0__Lfastparse_internal_Msgs__V(startIndex$3, $$x10, $$x9); | |
} | |
} | |
; | |
break; | |
} else { | |
var beforeSepIndex = evidence$20.Lfastparse_ParsingRun__f_index; | |
var t = evidence$20.Lfastparse_ParsingRun__f_successValue; | |
var nextCount = 1 + count | 0; | |
if (nextCount === 2) { | |
var res$2$1 = $p_Lfastparse_internal_RepImpls$__end$3__I__I__I__Z__I__Lfastparse_ParsingRun__Lfastparse_Implicits$Repeater__O__Lfastparse_ParsingRun(this$42, beforeSepIndex, beforeSepIndex, nextCount, !!(outerCut | postCut), 2, evidence$20, repeater, void 0); | |
if (verboseFailures$1) { | |
evidence$20.setMsg__I__F0__V(startIndex$1, new $c_sjsr_AnonFunction0(((parsedMsg$3, min$6) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$3.Lfastparse_internal_Msgs__f_value) + ".rep" + (min$6 === 0 ? "" : "(" + min$6 + ")"))(parsedMsg, 0))); | |
} | |
; | |
break; | |
} else { | |
if (whitespace !== $m_Lfastparse_NoWhitespace$noWhitespaceImplicit$()) { | |
$m_Lfastparse_internal_Util$().consumeWhitespace__F1__Lfastparse_ParsingRun__V(whitespace, evidence$20); | |
} | |
; | |
if (!(!evidence$20.Lfastparse_ParsingRun__f_isSuccess && evidence$20.Lfastparse_ParsingRun__f_cut)) { | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
var sepCut = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var endCut$1 = !!(!!(outerCut | postCut) | sepCut); | |
startIndex$1 = beforeSepIndex; | |
count = nextCount; | |
precut = false; | |
outerCut = endCut$1; | |
sepMsg = null; | |
lastAgg = parsedAgg; | |
continue; | |
} | |
; | |
break; | |
} | |
} | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_noDropBuffer = oldCapturing$2; | |
var parse0$9 = !evidence$20.Lfastparse_ParsingRun__f_isSuccess ? evidence$20 : evidence$20.freshSuccess__O__Lfastparse_ParsingRun(evidence$20.Lfastparse_ParsingRun__f_input.slice__I__I__T(startPos$12, evidence$20.Lfastparse_ParsingRun__f_index)); | |
if (parse0$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var arg1$1 = parse0$9.Lfastparse_ParsingRun__f_successValue; | |
parse0$9.Lfastparse_ParsingRun__f_successValue = new $c_Lcodes_quine_labs_recheck_unicode_UChar($m_jl_Integer$().parseInt__T__I__I(arg1$1, 16)); | |
} | |
; | |
var rhsAggregate$macro$111 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$112 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$109 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$114 = postRhsIndex$macro$109 > preRhsIndex$macro$108; | |
var nextIndex$macro$117 = !rhsMadeProgress$macro$114 && input$macro$115.isReachable__I__Z(postRhsIndex$macro$109) ? postLhsIndex$macro$107 : postRhsIndex$macro$109; | |
if (rhsMadeProgress$macro$114) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
var v$6 = evidence$20.Lfastparse_ParsingRun__f_successValue; | |
evidence$20.freshSuccess__O__I__Lfastparse_ParsingRun(v$6, nextIndex$macro$117); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$106, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$113, rhsMsg$macro$112), lhsAggregate$macro$110.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$111), preRhsIndex$macro$108 === evidence$20.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$7 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$7 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var endCut$7 = !!(rhsCut$7 | oldCut$4); | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$7) { | |
evidence$20.freshFailure__I__Lfastparse_ParsingRun(startPos$4); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = endCut$7; | |
if (verboseFailures$7) { | |
var msgToSet$6 = lhsMsg$7.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$7); | |
var rassoc$3$8 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$6 = lhsAggregate$7.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$8); | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$4, msgToSet$6, msgToAggregate$6, false); | |
} | |
} | |
; | |
var lhsMsg$8 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$8 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$20.Lfastparse_ParsingRun__f_cut = !!(evidence$20.Lfastparse_ParsingRun__f_cut | oldCut$3); | |
} else if (evidence$20.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$8 = evidence$20.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$20.Lfastparse_ParsingRun__f_index = startPos$3; | |
if (verboseFailures$8) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, lhsMsg$8, lhsAggregate$8, false); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$138 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var input$macro$147 = evidence$20.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$123 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var input$macro$132 = evidence$20.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$8$1 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var end$8 = 2 + index$8$1 | 0; | |
var input$8 = evidence$20.Lfastparse_ParsingRun__f_input; | |
if (input$8.isReachable__I__Z(-1 + end$8 | 0)) { | |
var this$51 = input$8.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$51.charCodeAt(index$8$1) | 0)) === 92) { | |
var index$10 = 1 + index$8$1 | 0; | |
var this$52 = input$8.Lfastparse_IndexedParserInput__f_data; | |
var $$x11 = (65535 & (this$52.charCodeAt(index$10) | 0)) === 48; | |
} else { | |
var $$x11 = false; | |
} | |
} else { | |
var $$x11 = false; | |
} | |
; | |
if ($$x11) { | |
evidence$20.freshSuccessUnit__I__Lfastparse_ParsingRun(end$8); | |
} else { | |
evidence$20.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateTerminal__I__F0__V(index$8$1, new $c_sjsr_AnonFunction0(() => '"\\\\0"')); | |
} | |
; | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$124 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$127 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$130 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$124 > preLhsIndex$macro$123) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess && evidence$20.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$125 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var startPos$1 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var startCut = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var oldNoCut = evidence$20.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$20.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
var startTerminals = evidence$20.Lfastparse_ParsingRun__f_failureTerminalAggregate; | |
var x1$2 = new $c_sjsr_AnonFunction1(((this$56) => (c$2$1) => { | |
var c$1 = $uC(c$2$1); | |
return $p_Lcodes_quine_labs_recheck_regexp_Parser__isDigit__C__Z(this$56, c$1); | |
})(this)); | |
var startIndex$4 = evidence$20.Lfastparse_ParsingRun__f_index; | |
if (evidence$20.Lfastparse_ParsingRun__f_input.isReachable__I__Z(evidence$20.Lfastparse_ParsingRun__f_index)) { | |
var this$57 = evidence$20.Lfastparse_ParsingRun__f_input; | |
var index$11 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var this$58 = this$57.Lfastparse_IndexedParserInput__f_data; | |
var $$x12 = !!x1$2.apply__O__O($bC(65535 & (this$58.charCodeAt(index$11) | 0))); | |
} else { | |
var $$x12 = false; | |
} | |
; | |
if (!$$x12) { | |
evidence$20.freshFailure__Lfastparse_ParsingRun(); | |
} else { | |
evidence$20.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + evidence$20.Lfastparse_ParsingRun__f_index | 0); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateTerminal__I__F0__V(startIndex$4, new $c_sjsr_AnonFunction0(((x1$2$1) => () => "char-pred(" + x1$2$1 + ")")(x1$2))); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_noDropBuffer = oldNoCut; | |
var msg = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var res$11 = evidence$20.Lfastparse_ParsingRun__f_isSuccess ? evidence$20.freshFailure__I__Lfastparse_ParsingRun(startPos$1) : evidence$20.freshSuccessUnit__I__Lfastparse_ParsingRun(startPos$1); | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.Lfastparse_ParsingRun__f_failureTerminalAggregate = startTerminals; | |
evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate = $m_Lfastparse_internal_Msgs$().Lfastparse_internal_Msgs$__f_empty; | |
evidence$20.setMsg__I__F0__V(startPos$1, new $c_sjsr_AnonFunction0(((msg$1) => () => "!" + $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(msg$1.Lfastparse_internal_Msgs__f_value))(msg))); | |
} | |
; | |
res$11.Lfastparse_ParsingRun__f_cut = startCut; | |
var rhsAggregate$macro$128 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$129 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$macro$135 = evidence$20; | |
} else { | |
var postRhsIndex$macro$126 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$131 = postRhsIndex$macro$126 > preRhsIndex$macro$125; | |
var nextIndex$macro$134 = !rhsMadeProgress$macro$131 && input$macro$132.isReachable__I__Z(postRhsIndex$macro$126) ? postLhsIndex$macro$124 : postRhsIndex$macro$126; | |
if (rhsMadeProgress$macro$131) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
var res$macro$135 = evidence$20.freshSuccess__O__I__Lfastparse_ParsingRun(void 0, nextIndex$macro$134); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$123, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$130, rhsMsg$macro$129), lhsAggregate$macro$127.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$128), preRhsIndex$macro$125 === evidence$20.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$139 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$142 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$145 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$139 > preLhsIndex$macro$138) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$20.Lfastparse_ParsingRun__f_isSuccess && evidence$20.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$140 = evidence$20.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$().Pass__O__Lfastparse_ParsingRun__Lfastparse_ParsingRun(new $c_Lcodes_quine_labs_recheck_unicode_UChar(0), evidence$20); | |
var rhsAggregate$macro$143 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$144 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postRhsIndex$macro$141 = evidence$20.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$146 = postRhsIndex$macro$141 > preRhsIndex$macro$140; | |
var nextIndex$macro$149 = !rhsMadeProgress$macro$146 && input$macro$147.isReachable__I__Z(postRhsIndex$macro$141) ? postLhsIndex$macro$139 : postRhsIndex$macro$141; | |
if (rhsMadeProgress$macro$146) { | |
evidence$20.checkForDrop__Z(); | |
} | |
; | |
var v$7 = evidence$20.Lfastparse_ParsingRun__f_successValue; | |
evidence$20.freshSuccess__O__I__Lfastparse_ParsingRun(v$7, nextIndex$macro$149); | |
} | |
; | |
if (evidence$20.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$138, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$145, rhsMsg$macro$144), lhsAggregate$macro$142.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$143), preRhsIndex$macro$140 === evidence$20.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var rhsMsg$8 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$8 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var endCut$8 = !!(rhsCut$8 | oldCut$3); | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$8) { | |
evidence$20.freshFailure__I__Lfastparse_ParsingRun(startPos$3); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = endCut$8; | |
if (verboseFailures$8) { | |
var msgToSet$7 = lhsMsg$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$8); | |
var rassoc$3$9 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$7 = lhsAggregate$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$9); | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$3, msgToSet$7, msgToAggregate$7, false); | |
} | |
} | |
; | |
var lhsMsg$9 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$9 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$20.Lfastparse_ParsingRun__f_cut = !!(evidence$20.Lfastparse_ParsingRun__f_cut | oldCut$2); | |
} else if (evidence$20.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var verboseFailures$9 = evidence$20.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$20.Lfastparse_ParsingRun__f_index = startPos$2; | |
if (verboseFailures$9) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, lhsMsg$9, lhsAggregate$9, false); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
this.OctalEscape__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$20); | |
var rhsMsg$9 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$9 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var endCut$9 = !!(rhsCut$9 | oldCut$2); | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$9) { | |
evidence$20.freshFailure__I__Lfastparse_ParsingRun(startPos$2); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = endCut$9; | |
if (verboseFailures$9) { | |
var msgToSet$8 = lhsMsg$9.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$9); | |
var rassoc$3$10 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$8 = lhsAggregate$9.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$10); | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, msgToSet$8, msgToAggregate$8, false); | |
} | |
} | |
; | |
var lhsMsg$10 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate$10 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$20.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$20.Lfastparse_ParsingRun__f_cut = !!(evidence$20.Lfastparse_ParsingRun__f_cut | oldCut); | |
var x1$44 = evidence$20; | |
} else if (evidence$20.Lfastparse_ParsingRun__f_cut) { | |
var x1$44 = evidence$20; | |
} else { | |
var verboseFailures$10 = evidence$20.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$20.Lfastparse_ParsingRun__f_index = startPos; | |
if (verboseFailures$10) { | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, lhsMsg$10, lhsAggregate$10, false); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = false; | |
this.IdentityEscape__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$20); | |
var rhsMsg$10 = evidence$20.Lfastparse_ParsingRun__f_shortParserMsg; | |
var rhsCut$10 = evidence$20.Lfastparse_ParsingRun__f_cut; | |
var endCut$10 = !!(rhsCut$10 | oldCut); | |
if (!evidence$20.Lfastparse_ParsingRun__f_isSuccess && !rhsCut$10) { | |
evidence$20.freshFailure__I__Lfastparse_ParsingRun(startPos); | |
} | |
; | |
evidence$20.Lfastparse_ParsingRun__f_cut = endCut$10; | |
if (verboseFailures$10) { | |
var msgToSet$9 = lhsMsg$10.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsMsg$10); | |
var rassoc$3$11 = evidence$20.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var msgToAggregate$9 = lhsAggregate$10.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$3$11); | |
evidence$20.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos, msgToSet$9, msgToAggregate$9, false); | |
} | |
; | |
var x1$44 = evidence$20; | |
} | |
; | |
if (instrument) { | |
evidence$20.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("EscapeCharacter").Lsourcecode_Name__f_value, x1$44.Lfastparse_ParsingRun__f_index, x1$44.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$44.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("EscapeCharacter").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$44.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$44.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$44.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$44.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("EscapeCharacter").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex); | |
var this$69 = x1$44.Lfastparse_ParsingRun__f_failureStack; | |
x1$44.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$69); | |
} | |
} | |
; | |
return x1$44; | |
}; | |
$c_Lcodes_quine_labs_recheck_regexp_Parser.prototype.UnicodeEscape__Lfastparse_ParsingRun__Lfastparse_ParsingRun = function(evidence$21) { | |
if (!this.Lcodes_quine_labs_recheck_regexp_Parser__f_unicode) { | |
var startIndex = evidence$21.Lfastparse_ParsingRun__f_index; | |
var instrument = evidence$21.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument) { | |
evidence$21.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("UnicodeEscape").Lsourcecode_Name__f_value, startIndex); | |
} | |
; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$4 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var input$macro$13 = evidence$21.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index = evidence$21.Lfastparse_ParsingRun__f_index; | |
var end = 2 + index | 0; | |
var input = evidence$21.Lfastparse_ParsingRun__f_input; | |
if (input.isReachable__I__Z(-1 + end | 0)) { | |
var this$2 = input.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$2.charCodeAt(index) | 0)) === 92) { | |
var index$1 = 1 + index | 0; | |
var this$3 = input.Lfastparse_IndexedParserInput__f_data; | |
var $$x1 = (65535 & (this$3.charCodeAt(index$1) | 0)) === 117; | |
} else { | |
var $$x1 = false; | |
} | |
} else { | |
var $$x1 = false; | |
} | |
; | |
if ($$x1) { | |
evidence$21.freshSuccessUnit__I__Lfastparse_ParsingRun(end); | |
} else { | |
evidence$21.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$21.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$21.aggregateTerminal__I__F0__V(index, new $c_sjsr_AnonFunction0(() => '"\\\\u"')); | |
} | |
; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
var x1$7 = evidence$21; | |
} else { | |
var postLhsIndex$macro$5 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$8 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$11 = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
evidence$21.Lfastparse_ParsingRun__f_cut = true; | |
if (postLhsIndex$macro$5 > preLhsIndex$macro$4) { | |
evidence$21.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess && evidence$21.Lfastparse_ParsingRun__f_cut) { | |
var x1$7 = evidence$21; | |
} else { | |
var preRhsIndex$macro$6 = evidence$21.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var startPos = evidence$21.Lfastparse_ParsingRun__f_index; | |
var oldCapturing = evidence$21.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$21.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var repeater = $m_Lfastparse_Implicits$Repeater$UnitRepeater$(); | |
var whitespace = $m_Lfastparse_NoWhitespace$noWhitespaceImplicit$(); | |
var this$7 = $m_Lfastparse_internal_RepImpls$(); | |
var startIndex$1 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var count = 0; | |
var precut = false; | |
var outerCut = evidence$21.Lfastparse_ParsingRun__f_cut; | |
var sepMsg = null; | |
var lastAgg = null; | |
while (true) { | |
evidence$21.Lfastparse_ParsingRun__f_cut = !!(precut | (count < 0 && outerCut)); | |
this.HexDigit__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$21); | |
var parsedMsg = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
var parsedAgg = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var postCut = evidence$21.Lfastparse_ParsingRun__f_cut; | |
var verboseFailures = evidence$21.Lfastparse_ParsingRun__f_verboseFailures; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$1 = postCut ? evidence$21 : $p_Lfastparse_internal_RepImpls$__end$3__I__I__I__Z__I__Lfastparse_ParsingRun__Lfastparse_Implicits$Repeater__O__Lfastparse_ParsingRun(this$7, startIndex$1, startIndex$1, count, !!(outerCut | postCut), 4, evidence$21, repeater, void 0); | |
if (verboseFailures) { | |
var startIndex$2 = startIndex$1; | |
var sepMsg$1 = sepMsg; | |
var lastAgg$1 = lastAgg; | |
var precut$1 = precut; | |
if (sepMsg$1 === null || precut$1) { | |
evidence$21.aggregateMsg__I__F0__Lfastparse_internal_Msgs__V(startIndex$2, new $c_sjsr_AnonFunction0(((parsedMsg$1, min) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$1.Lfastparse_internal_Msgs__f_value) + (".rep(" + min) + ")")(parsedMsg, 0)), evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate); | |
} else { | |
var $$x3 = new $c_sjsr_AnonFunction0(((parsedMsg$2, min$1) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$2.Lfastparse_internal_Msgs__f_value) + (".rep(" + min$1) + ")")(parsedMsg, 0)); | |
if (lastAgg$1 === null) { | |
var $$x2 = $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(sepMsg$1, parsedMsg); | |
} else { | |
var rassoc$2 = $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(sepMsg$1, parsedMsg); | |
var $$x2 = lastAgg$1.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$2); | |
} | |
; | |
evidence$21.aggregateMsg__I__F0__Lfastparse_internal_Msgs__V(startIndex$2, $$x3, $$x2); | |
} | |
} | |
; | |
break; | |
} else { | |
var beforeSepIndex = evidence$21.Lfastparse_ParsingRun__f_index; | |
var t = evidence$21.Lfastparse_ParsingRun__f_successValue; | |
var nextCount = 1 + count | 0; | |
if (nextCount === 4) { | |
var res$2 = $p_Lfastparse_internal_RepImpls$__end$3__I__I__I__Z__I__Lfastparse_ParsingRun__Lfastparse_Implicits$Repeater__O__Lfastparse_ParsingRun(this$7, beforeSepIndex, beforeSepIndex, nextCount, !!(outerCut | postCut), 4, evidence$21, repeater, void 0); | |
if (verboseFailures) { | |
evidence$21.setMsg__I__F0__V(startIndex$1, new $c_sjsr_AnonFunction0(((parsedMsg$3, min$6) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$3.Lfastparse_internal_Msgs__f_value) + ".rep" + (min$6 === 0 ? "" : "(" + min$6 + ")"))(parsedMsg, 0))); | |
} | |
; | |
break; | |
} else { | |
if (whitespace !== $m_Lfastparse_NoWhitespace$noWhitespaceImplicit$()) { | |
$m_Lfastparse_internal_Util$().consumeWhitespace__F1__Lfastparse_ParsingRun__V(whitespace, evidence$21); | |
} | |
; | |
if (!(!evidence$21.Lfastparse_ParsingRun__f_isSuccess && evidence$21.Lfastparse_ParsingRun__f_cut)) { | |
evidence$21.Lfastparse_ParsingRun__f_cut = false; | |
var sepCut = evidence$21.Lfastparse_ParsingRun__f_cut; | |
var endCut = !!(!!(outerCut | postCut) | sepCut); | |
startIndex$1 = beforeSepIndex; | |
count = nextCount; | |
precut = false; | |
outerCut = endCut; | |
sepMsg = null; | |
lastAgg = parsedAgg; | |
continue; | |
} | |
; | |
break; | |
} | |
} | |
} | |
; | |
evidence$21.Lfastparse_ParsingRun__f_noDropBuffer = oldCapturing; | |
var parse0$1 = !evidence$21.Lfastparse_ParsingRun__f_isSuccess ? evidence$21 : evidence$21.freshSuccess__O__Lfastparse_ParsingRun(evidence$21.Lfastparse_ParsingRun__f_input.slice__I__I__T(startPos, evidence$21.Lfastparse_ParsingRun__f_index)); | |
if (parse0$1.Lfastparse_ParsingRun__f_isSuccess) { | |
var arg1 = parse0$1.Lfastparse_ParsingRun__f_successValue; | |
parse0$1.Lfastparse_ParsingRun__f_successValue = new $c_Lcodes_quine_labs_recheck_unicode_UChar($m_jl_Integer$().parseInt__T__I__I(arg1, 16)); | |
} | |
; | |
var rhsAggregate$macro$9 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$10 = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$21.Lfastparse_ParsingRun__f_cut = true; | |
var res$macro$16 = evidence$21; | |
} else { | |
var postRhsIndex$macro$7 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$12 = postRhsIndex$macro$7 > preRhsIndex$macro$6; | |
var nextIndex$macro$15 = !rhsMadeProgress$macro$12 && input$macro$13.isReachable__I__Z(postRhsIndex$macro$7) ? postLhsIndex$macro$5 : postRhsIndex$macro$7; | |
if (rhsMadeProgress$macro$12) { | |
evidence$21.checkForDrop__Z(); | |
} | |
; | |
var v = evidence$21.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$16 = evidence$21.freshSuccess__O__I__Lfastparse_ParsingRun(v, nextIndex$macro$15); | |
} | |
; | |
if (evidence$21.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$21.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$4, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$11, rhsMsg$macro$10), lhsAggregate$macro$8.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$9), preRhsIndex$macro$6 === evidence$21.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
; | |
var x1$7 = res$macro$16; | |
} | |
} | |
; | |
if (instrument) { | |
evidence$21.Lfastparse_ParsingRun__f_instrument.afterParse__T__I__Z__V(new $c_Lsourcecode_Name("UnicodeEscape").Lsourcecode_Name__f_value, x1$7.Lfastparse_ParsingRun__f_index, x1$7.Lfastparse_ParsingRun__f_isSuccess); | |
} | |
; | |
if (x1$7.Lfastparse_ParsingRun__f_verboseFailures) { | |
$m_s_package$(); | |
var array = [new $c_Lfastparse_internal_Lazy(new $c_sjsr_AnonFunction0(() => new $c_Lsourcecode_Name("UnicodeEscape").Lsourcecode_Name__f_value))]; | |
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); | |
x1$7.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)), x1$7.Lfastparse_ParsingRun__f_failureGroupAggregate, startIndex < x1$7.Lfastparse_ParsingRun__f_traceIndex); | |
if (!x1$7.Lfastparse_ParsingRun__f_isSuccess) { | |
var self = new $c_Lsourcecode_Name("UnicodeEscape").Lsourcecode_Name__f_value; | |
var rassoc$1$2 = $ct_T2__O__O__(new $c_T2(), self, startIndex); | |
var this$19 = x1$7.Lfastparse_ParsingRun__f_failureStack; | |
x1$7.Lfastparse_ParsingRun__f_failureStack = new $c_sci_$colon$colon(rassoc$1$2, this$19); | |
} | |
} | |
; | |
return x1$7; | |
} else { | |
var startIndex$2$1 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var instrument$2 = evidence$21.Lfastparse_ParsingRun__f_instrument !== null; | |
if (instrument$2) { | |
evidence$21.Lfastparse_ParsingRun__f_instrument.beforeParse__T__I__V(new $c_Lsourcecode_Name("UnicodeEscape").Lsourcecode_Name__f_value, startIndex$2$1); | |
} | |
; | |
var oldCut = evidence$21.Lfastparse_ParsingRun__f_cut; | |
evidence$21.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$2 = evidence$21.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var this$20 = $m_Lfastparse_Implicits$Sequencer$(); | |
this$20.UnitSequencer0__Lfastparse_Implicits$LowPriSequencer$UnitSequencer0$(); | |
var preLhsIndex$macro$47 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var input$macro$56 = evidence$21.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$32 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var input$macro$41 = evidence$21.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$2 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var end$2 = 3 + index$2 | 0; | |
var input$2 = evidence$21.Lfastparse_ParsingRun__f_input; | |
if (input$2.isReachable__I__Z(-1 + end$2 | 0)) { | |
var this$22 = input$2.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$22.charCodeAt(index$2) | 0)) === 92) { | |
var index$3 = 1 + index$2 | 0; | |
var this$23 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x5 = (65535 & (this$23.charCodeAt(index$3) | 0)) === 117; | |
} else { | |
var $$x5 = false; | |
} | |
; | |
if ($$x5) { | |
var index$4 = 2 + index$2 | 0; | |
var this$24 = input$2.Lfastparse_IndexedParserInput__f_data; | |
var $$x4 = (65535 & (this$24.charCodeAt(index$4) | 0)) === 123; | |
} else { | |
var $$x4 = false; | |
} | |
} else { | |
var $$x4 = false; | |
} | |
; | |
if ($$x4) { | |
evidence$21.freshSuccessUnit__I__Lfastparse_ParsingRun(end$2); | |
} else { | |
evidence$21.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$21.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$21.aggregateTerminal__I__F0__V(index$2, new $c_sjsr_AnonFunction0(() => '"\\\\u{"')); | |
} | |
; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$33 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$36 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$39 = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
evidence$21.Lfastparse_ParsingRun__f_cut = true; | |
if (postLhsIndex$macro$33 > preLhsIndex$macro$32) { | |
evidence$21.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess && evidence$21.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$34 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var startIndex$3 = evidence$21.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var startPos$3 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var oldCapturing$2 = evidence$21.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$21.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
$m_Lfastparse_package$(); | |
var elem = evidence$21.Lfastparse_ParsingRun__f_cut; | |
var elem$1 = false; | |
elem$1 = elem; | |
var startIndex$macro$23 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var count$macro$24 = 0; | |
var lastAgg$macro$29 = null; | |
while (true) { | |
evidence$21.Lfastparse_ParsingRun__f_cut = elem$1 && count$macro$24 < 1; | |
$m_Lfastparse_package$(); | |
this.HexDigit__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$21); | |
var parsedMsg$macro$28 = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
var parsedAgg$macro$30 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
elem$1 = !!(elem$1 | evidence$21.Lfastparse_ParsingRun__f_cut); | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$3 = evidence$21.Lfastparse_ParsingRun__f_cut ? evidence$21 : count$macro$24 < 1 ? evidence$21.augmentFailure__I__Z__Lfastparse_ParsingRun(startIndex$macro$23, elem$1) : evidence$21.freshSuccess__O__I__Z__Lfastparse_ParsingRun(void 0, startIndex$macro$23, elem$1); | |
if (evidence$21.Lfastparse_ParsingRun__f_verboseFailures) { | |
var $$x8 = startIndex$macro$23; | |
var $$x7 = new $c_sjsr_AnonFunction0(((parsedMsg$macro$28$1) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$macro$28$1.Lfastparse_internal_Msgs__f_value) + ".rep(1)")(parsedMsg$macro$28)); | |
if (lastAgg$macro$29 === null) { | |
var $$x6 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
} else { | |
var rassoc$2$1 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var $$x6 = lastAgg$macro$29.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$2$1); | |
} | |
; | |
evidence$21.aggregateMsg__I__F0__Lfastparse_internal_Msgs__V($$x8, $$x7, $$x6); | |
} | |
; | |
break; | |
} else { | |
var beforeSepIndex$macro$25 = evidence$21.Lfastparse_ParsingRun__f_index; | |
evidence$21.Lfastparse_ParsingRun__f_cut = false; | |
if ($m_Lfastparse_NoWhitespace$noWhitespaceImplicit$() !== $m_Lfastparse_NoWhitespace$noWhitespaceImplicit$()) { | |
$m_Lfastparse_internal_Util$().consumeWhitespace__F1__Lfastparse_ParsingRun__V($m_Lfastparse_NoWhitespace$noWhitespaceImplicit$(), evidence$21); | |
} | |
; | |
if (!(!evidence$21.Lfastparse_ParsingRun__f_isSuccess && evidence$21.Lfastparse_ParsingRun__f_cut)) { | |
evidence$21.Lfastparse_ParsingRun__f_cut = false; | |
var temp$count$macro$24 = 1 + count$macro$24 | 0; | |
startIndex$macro$23 = beforeSepIndex$macro$25; | |
count$macro$24 = temp$count$macro$24; | |
lastAgg$macro$29 = parsedAgg$macro$30; | |
continue; | |
} | |
; | |
break; | |
} | |
} | |
; | |
evidence$21.Lfastparse_ParsingRun__f_noDropBuffer = oldCapturing$2; | |
var parse0$3 = !evidence$21.Lfastparse_ParsingRun__f_isSuccess ? evidence$21 : evidence$21.freshSuccess__O__Lfastparse_ParsingRun(evidence$21.Lfastparse_ParsingRun__f_input.slice__I__I__T(startPos$3, evidence$21.Lfastparse_ParsingRun__f_index)); | |
if (!parse0$3.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var arg1$1 = parse0$3.Lfastparse_ParsingRun__f_successValue; | |
parse0$3.Lfastparse_ParsingRun__f_successValue = new $c_Lcodes_quine_labs_recheck_unicode_UChar($m_jl_Integer$().parseInt__T__I__I(arg1$1, 16)); | |
} | |
; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var arg1$2 = evidence$21.Lfastparse_ParsingRun__f_successValue; | |
if (arg1$2.isValidCodePoint__Z()) { | |
} else { | |
evidence$21.freshFailure__Lfastparse_ParsingRun(); | |
} | |
} | |
; | |
if (evidence$21.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$21.aggregateTerminal__I__F0__V(startIndex$3, new $c_sjsr_AnonFunction0(() => "filter")); | |
} | |
; | |
var rhsAggregate$macro$37 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$38 = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$21.Lfastparse_ParsingRun__f_cut = true; | |
var res$macro$44 = evidence$21; | |
} else { | |
var postRhsIndex$macro$35 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$40 = postRhsIndex$macro$35 > preRhsIndex$macro$34; | |
var nextIndex$macro$43 = !rhsMadeProgress$macro$40 && input$macro$41.isReachable__I__Z(postRhsIndex$macro$35) ? postLhsIndex$macro$33 : postRhsIndex$macro$35; | |
if (rhsMadeProgress$macro$40) { | |
evidence$21.checkForDrop__Z(); | |
} | |
; | |
var v$1 = evidence$21.Lfastparse_ParsingRun__f_successValue; | |
var res$macro$44 = evidence$21.freshSuccess__O__I__Lfastparse_ParsingRun(v$1, nextIndex$macro$43); | |
} | |
; | |
if (evidence$21.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$21.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$32, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$39, rhsMsg$macro$38), lhsAggregate$macro$36.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$37), preRhsIndex$macro$34 === evidence$21.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$48 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$51 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$54 = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
evidence$21.Lfastparse_ParsingRun__f_cut = true; | |
if (postLhsIndex$macro$48 > preLhsIndex$macro$47) { | |
evidence$21.checkForDrop__Z(); | |
} | |
; | |
var lhsValue$macro$57 = evidence$21.Lfastparse_ParsingRun__f_successValue; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess && evidence$21.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$49 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var input$3 = evidence$21.Lfastparse_ParsingRun__f_input; | |
var index$3$1 = evidence$21.Lfastparse_ParsingRun__f_index; | |
if (input$3.isReachable__I__Z(index$3$1)) { | |
var this$32 = input$3.Lfastparse_IndexedParserInput__f_data; | |
var $$x9 = (65535 & (this$32.charCodeAt(index$3$1) | 0)) === 125; | |
} else { | |
var $$x9 = false; | |
} | |
; | |
if ($$x9) { | |
evidence$21.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$3$1 | 0); | |
} else { | |
evidence$21.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$21.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$21.aggregateTerminal__I__F0__V(index$3$1, new $c_sjsr_AnonFunction0(() => '"}"')); | |
} | |
; | |
var rhsAggregate$macro$52 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var rhsMsg$macro$53 = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$21.Lfastparse_ParsingRun__f_cut = true; | |
var res$macro$59 = evidence$21; | |
} else { | |
var postRhsIndex$macro$50 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var rhsMadeProgress$macro$55 = postRhsIndex$macro$50 > preRhsIndex$macro$49; | |
var nextIndex$macro$58 = !rhsMadeProgress$macro$55 && input$macro$56.isReachable__I__Z(postRhsIndex$macro$50) ? postLhsIndex$macro$48 : postRhsIndex$macro$50; | |
if (rhsMadeProgress$macro$55) { | |
evidence$21.checkForDrop__Z(); | |
} | |
; | |
var t$1 = lhsValue$macro$57; | |
var res$macro$59 = evidence$21.freshSuccess__O__I__Lfastparse_ParsingRun(t$1, nextIndex$macro$58); | |
} | |
; | |
if (evidence$21.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$21.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(preLhsIndex$macro$47, $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(lhsMsg$macro$54, rhsMsg$macro$53), lhsAggregate$macro$51.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rhsAggregate$macro$52), preRhsIndex$macro$49 === evidence$21.Lfastparse_ParsingRun__f_traceIndex); | |
} | |
} | |
} | |
; | |
var lhsMsg = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
var lhsAggregate = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
if (evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
evidence$21.Lfastparse_ParsingRun__f_cut = !!(evidence$21.Lfastparse_ParsingRun__f_cut | oldCut); | |
var x1$27 = evidence$21; | |
} else if (evidence$21.Lfastparse_ParsingRun__f_cut) { | |
var x1$27 = evidence$21; | |
} else { | |
var verboseFailures$1 = evidence$21.Lfastparse_ParsingRun__f_verboseFailures; | |
evidence$21.Lfastparse_ParsingRun__f_index = startPos$2; | |
if (verboseFailures$1) { | |
evidence$21.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startPos$2, lhsMsg, lhsAggregate, false); | |
} | |
; | |
evidence$21.Lfastparse_ParsingRun__f_cut = false; | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$111 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var input$macro$120 = evidence$21.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$4$1 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var end$3 = 2 + index$4$1 | 0; | |
var input$4 = evidence$21.Lfastparse_ParsingRun__f_input; | |
if (input$4.isReachable__I__Z(-1 + end$3 | 0)) { | |
var this$35 = input$4.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$35.charCodeAt(index$4$1) | 0)) === 92) { | |
var index$5 = 1 + index$4$1 | 0; | |
var this$36 = input$4.Lfastparse_IndexedParserInput__f_data; | |
var $$x10 = (65535 & (this$36.charCodeAt(index$5) | 0)) === 117; | |
} else { | |
var $$x10 = false; | |
} | |
} else { | |
var $$x10 = false; | |
} | |
; | |
if ($$x10) { | |
evidence$21.freshSuccessUnit__I__Lfastparse_ParsingRun(end$3); | |
} else { | |
evidence$21.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$21.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$21.aggregateTerminal__I__F0__V(index$4$1, new $c_sjsr_AnonFunction0(() => '"\\\\u"')); | |
} | |
; | |
if (evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
var postLhsIndex$macro$112 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$115 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$118 = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
evidence$21.Lfastparse_ParsingRun__f_cut = true; | |
if (postLhsIndex$macro$112 > preLhsIndex$macro$111) { | |
evidence$21.checkForDrop__Z(); | |
} | |
; | |
if (!(!evidence$21.Lfastparse_ParsingRun__f_isSuccess && evidence$21.Lfastparse_ParsingRun__f_cut)) { | |
var preRhsIndex$macro$113 = evidence$21.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var startPos$4 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var oldCapturing$3 = evidence$21.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$21.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_package$(); | |
var repeater$1 = $m_Lfastparse_Implicits$Repeater$UnitRepeater$(); | |
var whitespace$1 = $m_Lfastparse_NoWhitespace$noWhitespaceImplicit$(); | |
var this$40 = $m_Lfastparse_internal_RepImpls$(); | |
var startIndex$4 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var count$1 = 0; | |
var precut$2 = false; | |
var outerCut$1 = evidence$21.Lfastparse_ParsingRun__f_cut; | |
var sepMsg$2 = null; | |
var lastAgg$2 = null; | |
while (true) { | |
evidence$21.Lfastparse_ParsingRun__f_cut = !!(precut$2 | (count$1 < 0 && outerCut$1)); | |
this.HexDigit__Lfastparse_ParsingRun__Lfastparse_ParsingRun(evidence$21); | |
var parsedMsg$4 = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
var parsedAgg$1 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var postCut$1 = evidence$21.Lfastparse_ParsingRun__f_cut; | |
var verboseFailures$2 = evidence$21.Lfastparse_ParsingRun__f_verboseFailures; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
var res$6 = postCut$1 ? evidence$21 : $p_Lfastparse_internal_RepImpls$__end$3__I__I__I__Z__I__Lfastparse_ParsingRun__Lfastparse_Implicits$Repeater__O__Lfastparse_ParsingRun(this$40, startIndex$4, startIndex$4, count$1, !!(outerCut$1 | postCut$1), 4, evidence$21, repeater$1, void 0); | |
if (verboseFailures$2) { | |
var startIndex$5 = startIndex$4; | |
var sepMsg$3 = sepMsg$2; | |
var lastAgg$3 = lastAgg$2; | |
var precut$3 = precut$2; | |
if (sepMsg$3 === null || precut$3) { | |
evidence$21.aggregateMsg__I__F0__Lfastparse_internal_Msgs__V(startIndex$5, new $c_sjsr_AnonFunction0(((parsedMsg$5, min$2) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$5.Lfastparse_internal_Msgs__f_value) + (".rep(" + min$2) + ")")(parsedMsg$4, 0)), evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate); | |
} else { | |
var $$x12 = new $c_sjsr_AnonFunction0(((parsedMsg$6, min$3) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$6.Lfastparse_internal_Msgs__f_value) + (".rep(" + min$3) + ")")(parsedMsg$4, 0)); | |
if (lastAgg$3 === null) { | |
var $$x11 = $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(sepMsg$3, parsedMsg$4); | |
} else { | |
var rassoc$2$2 = $m_Lfastparse_internal_Util$().joinBinOp__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(sepMsg$3, parsedMsg$4); | |
var $$x11 = lastAgg$3.$colon$colon$colon__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs(rassoc$2$2); | |
} | |
; | |
evidence$21.aggregateMsg__I__F0__Lfastparse_internal_Msgs__V(startIndex$5, $$x12, $$x11); | |
} | |
} | |
; | |
break; | |
} else { | |
var beforeSepIndex$1 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var t$2 = evidence$21.Lfastparse_ParsingRun__f_successValue; | |
var nextCount$1 = 1 + count$1 | 0; | |
if (nextCount$1 === 4) { | |
var res$2$2 = $p_Lfastparse_internal_RepImpls$__end$3__I__I__I__Z__I__Lfastparse_ParsingRun__Lfastparse_Implicits$Repeater__O__Lfastparse_ParsingRun(this$40, beforeSepIndex$1, beforeSepIndex$1, nextCount$1, !!(outerCut$1 | postCut$1), 4, evidence$21, repeater$1, void 0); | |
if (verboseFailures$2) { | |
evidence$21.setMsg__I__F0__V(startIndex$4, new $c_sjsr_AnonFunction0(((parsedMsg$7, min$6$1) => () => $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(parsedMsg$7.Lfastparse_internal_Msgs__f_value) + ".rep" + (min$6$1 === 0 ? "" : "(" + min$6$1 + ")"))(parsedMsg$4, 0))); | |
} | |
; | |
break; | |
} else { | |
if (whitespace$1 !== $m_Lfastparse_NoWhitespace$noWhitespaceImplicit$()) { | |
$m_Lfastparse_internal_Util$().consumeWhitespace__F1__Lfastparse_ParsingRun__V(whitespace$1, evidence$21); | |
} | |
; | |
if (!(!evidence$21.Lfastparse_ParsingRun__f_isSuccess && evidence$21.Lfastparse_ParsingRun__f_cut)) { | |
evidence$21.Lfastparse_ParsingRun__f_cut = false; | |
var sepCut$1 = evidence$21.Lfastparse_ParsingRun__f_cut; | |
var endCut$1 = !!(!!(outerCut$1 | postCut$1) | sepCut$1); | |
startIndex$4 = beforeSepIndex$1; | |
count$1 = nextCount$1; | |
precut$2 = false; | |
outerCut$1 = endCut$1; | |
sepMsg$2 = null; | |
lastAgg$2 = parsedAgg$1; | |
continue; | |
} | |
; | |
break; | |
} | |
} | |
} | |
; | |
evidence$21.Lfastparse_ParsingRun__f_noDropBuffer = oldCapturing$3; | |
var parse0$8 = !evidence$21.Lfastparse_ParsingRun__f_isSuccess ? evidence$21 : evidence$21.freshSuccess__O__Lfastparse_ParsingRun(evidence$21.Lfastparse_ParsingRun__f_input.slice__I__I__T(startPos$4, evidence$21.Lfastparse_ParsingRun__f_index)); | |
if (!parse0$8.Lfastparse_ParsingRun__f_isSuccess) { | |
var parse0$9 = parse0$8; | |
} else { | |
var arg1$3 = parse0$8.Lfastparse_ParsingRun__f_successValue; | |
parse0$8.Lfastparse_ParsingRun__f_successValue = $m_jl_Integer$().parseInt__T__I__I(arg1$3, 16); | |
var parse0$9 = parse0$8; | |
} | |
; | |
if (parse0$9.Lfastparse_ParsingRun__f_isSuccess) { | |
var oldCapturing$4 = parse0$9.Lfastparse_ParsingRun__f_noDropBuffer; | |
var successValue = parse0$9.Lfastparse_ParsingRun__f_successValue; | |
parse0$9.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
parse0$9.freshSuccessUnit__Lfastparse_ParsingRun(); | |
parse0$9.Lfastparse_ParsingRun__f_noDropBuffer = oldCapturing$4; | |
if (!(!parse0$9.Lfastparse_ParsingRun__f_isSuccess && parse0$9.Lfastparse_ParsingRun__f_cut)) { | |
var arg1$4 = successValue | 0; | |
if (arg1$4 >= 55296 && arg1$4 <= 56319) { | |
var oldCut$1 = evidence$21.Lfastparse_ParsingRun__f_cut; | |
evidence$21.Lfastparse_ParsingRun__f_cut = false; | |
var startPos$1 = evidence$21.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$96 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var input$macro$105 = evidence$21.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$6 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var end$1 = 2 + index$6 | 0; | |
var input$1 = evidence$21.Lfastparse_ParsingRun__f_input; | |
if (input$1.isReachable__I__Z(-1 + end$1 | 0)) { | |
var this$48 = input$1.Lfastparse_IndexedParserInput__f_data; | |
if ((65535 & (this$48.charCodeAt(index$6) | 0)) === 92) { | |
var index$7 = 1 + index$6 | 0; | |
var this$49 = input$1.Lfastparse_IndexedParserInput__f_data; | |
var $$x13 = (65535 & (this$49.charCodeAt(index$7) | 0)) === 117; | |
} else { | |
var $$x13 = false; | |
} | |
} else { | |
var $$x13 = false; | |
} | |
; | |
if ($$x13) { | |
evidence$21.freshSuccessUnit__I__Lfastparse_ParsingRun(end$1); | |
} else { | |
evidence$21.freshFailure__Lfastparse_ParsingRun(); | |
} | |
; | |
if (evidence$21.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$21.aggregateTerminal__I__F0__V(index$6, new $c_sjsr_AnonFunction0(() => '"\\\\u"')); | |
} | |
; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$97 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$100 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$103 = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$97 > preLhsIndex$macro$96) { | |
evidence$21.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess && evidence$21.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$98 = evidence$21.Lfastparse_ParsingRun__f_index; | |
$m_Lfastparse_package$(); | |
var startPos$2$1 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var oldCapturing$1 = evidence$21.Lfastparse_ParsingRun__f_noDropBuffer; | |
evidence$21.Lfastparse_ParsingRun__f_noDropBuffer = true; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$81 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var input$macro$90 = evidence$21.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
$m_Lfastparse_Implicits$Sequencer$(); | |
var preLhsIndex$macro$66 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var input$macro$75 = evidence$21.Lfastparse_ParsingRun__f_input; | |
$m_Lfastparse_package$(); | |
var index$2$1 = evidence$21.Lfastparse_ParsingRun__f_index; | |
if (!evidence$21.Lfastparse_ParsingRun__f_input.isReachable__I__Z(index$2$1)) { | |
evidence$21.freshFailure__Lfastparse_ParsingRun(); | |
} else { | |
var this$53 = evidence$21.Lfastparse_ParsingRun__f_input; | |
var index$8 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var this$54 = this$53.Lfastparse_IndexedParserInput__f_data; | |
var x1$12 = 65535 & (this$54.charCodeAt(index$8) | 0); | |
switch (x1$12) { | |
case 100: { | |
var x1$13$1 = true; | |
break; | |
} | |
case 68: { | |
var x1$13$1 = true; | |
break; | |
} | |
default: { | |
var x1$13$1 = false; | |
} | |
} | |
; | |
if (x1$13$1 === true) { | |
evidence$21.freshSuccessUnit__I__Lfastparse_ParsingRun(1 + index$2$1 | 0); | |
} else { | |
if (x1$13$1 !== false) { | |
throw new $c_s_MatchError(x1$13$1); | |
} | |
; | |
evidence$21.freshFailure__Lfastparse_ParsingRun(); | |
} | |
} | |
; | |
if (evidence$21.Lfastparse_ParsingRun__f_verboseFailures) { | |
evidence$21.aggregateTerminal__I__F0__V(index$2$1, new $c_sjsr_AnonFunction0(() => "[dD]")); | |
} | |
; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess) { | |
} else { | |
var postLhsIndex$macro$67 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var lhsAggregate$macro$70 = evidence$21.Lfastparse_ParsingRun__f_failureGroupAggregate; | |
var lhsMsg$macro$73 = evidence$21.Lfastparse_ParsingRun__f_shortParserMsg; | |
if (postLhsIndex$macro$67 > preLhsIndex$macro$66) { | |
evidence$21.checkForDrop__Z(); | |
} | |
; | |
if (!evidence$21.Lfastparse_ParsingRun__f_isSuccess && evidence$21.Lfastparse_ParsingRun__f_cut) { | |
} else { | |
var preRhsIndex$macro$68 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var index$3$2 = evidence$21.Lfastparse_ParsingRun__f_index; | |
if (!evidence$21.Lfastparse_ParsingRun__f_input.isReachable__I__Z(index$3$2)) { | |
evidence$21.freshFailure__Lfastparse_ParsingRun(); | |
} else { | |
var this$56 = evidence$21.Lfastparse_ParsingRun__f_input; | |
var index$9 = evidence$21.Lfastparse_ParsingRun__f_index; | |
var this$57 = this$56.Lfastparse_IndexedParserInput__f_data; | |
var x1$15 = 65535 & (this$57.charCodeAt(index$9) | 0); | |
switch (x1$15) { | |
case 99: { | |
var x1$16 = true; | |
break; | |
} | |
case 100: { | |
var x1$16 = true; | |
break; | |
} | |
case 101: { | |
var x1$16 = true; | |
break; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment