// Generated by ReScript, PLEASE EDIT WITH CARE import * as Primitive_option from "@rescript/runtime/lib/es6/Primitive_option.mjs"; let f1 = { x: 3, z: 2 }; let newrecord = {...f1}; newrecord.y = 3; let newrecord$1 = {...newrecord}; newrecord$1.yy = Primitive_option.some(undefined); let theseTwoShouldBeIdentical = [ newrecord$1.yy, Primitive_option.some(undefined) ]; let v = { x: 2, z: 3 }; let newrecord$2 = {...v}; newrecord$2.y1 = 22; let v1 = { x: 2, z: 3 }; let newrecord$3 = {...v1}; newrecord$3.y1 = 22; function h11(v1) { return { ...v1, y1: 22 }; } let po = { aa: 3, bb: 4 }; let newrecord$4 = {...po}; newrecord$4.aa = undefined; function setAA(ao) { return { aa: ao, bb: undefined }; } let ir0 = { TAG: "V0", x0: "v0", x3: 3 }; let ir1 = { TAG: "V0", x0: "v0", x1: "v1", x3: 3 }; let ir2 = { TAG: "V0", x0: "v0", x1: "v1", x2: 2, x3: 3 }; let ir3 = { TAG: "V1", y0: "v0", y1: 1 }; let pm0; pm0 = ir0.TAG === "V0" ? [ "v0", 3 ] : [ "v0", undefined ]; let pm1; pm1 = ir1.TAG === "V0" ? [ "v0", "v1", 3 ] : [ "v0", "n/a", "v1" ]; let pm2; pm2 = ir2.TAG === "V0" ? [ "v0", "v1", 2, 3 ] : [ "v0", "n/a", 0, "v1" ]; function inlinedRecord(ir) { if (ir.TAG !== "V0") { return [ ir.y0, "n/a", 0, ir.y1 ]; } let x1 = ir.x1; let x0 = ir.x0; if (x1 !== undefined) { switch (x1) { case "x1" : let x2 = ir.x2; if (x2 !== undefined) { return [ x0, "x1", x2, ir.x3 ]; } break; case "xx1" : let x2$1 = ir.x2; if (x2$1 !== undefined) { return [ x0, "xx1", x2$1, ir.x3 ]; } break; } let x2$2 = ir.x2; if (x2$2 !== undefined) { return [ x0, x1, x2$2, ir.x3 ]; } else { return [ x0, x1, 0, ir.x3 ]; } } let x2$3 = ir.x2; if (x2$3 !== undefined) { return [ x0, "n/a", x2$3, ir.x3 ]; } else { return [ x0, "n/a", 0, ir.x3 ]; } } let pm3 = inlinedRecord(ir2); let pm4 = inlinedRecord(ir3); let f2 = { x: 3, y: 3, z: 3 }; let f3 = newrecord; let f4 = newrecord$1; let v2 = { x: 3, y: undefined, z: 2 }; let h = newrecord$2; let h10 = newrecord$3; let ir4 = { TAG: "V0", x: 3 }; let ir5 = { TAG: "V0" }; export { f1, f2, f3, f4, theseTwoShouldBeIdentical, v2, v, h, v1, h10, h11, po, setAA, ir0, ir1, ir2, ir3, pm0, pm1, pm2, inlinedRecord, pm3, pm4, ir4, ir5, } /* Not a pure module */